-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar Grid is not fully 0,0 when set to 0,0 Cell inset. It is off by one pixel when orientation changes. This seems to be an iOS issue. Workaround for now is to set the inset to some negative fractional value if you are experiencing the issue. #26
Comments
OK. first thing. I update this calendar quite a bit. Which version are you using? |
Using JTAppleCalendar (3.0.0) // From pod install output |
Note the latest version is 3.0.1 |
It is fixed! Thank you! |
And leave a like! :) its much needed. thanks! |
Happy to do so (and did!) Chuck p.s. do I need to do anything special to support a touch or 3d touch? love the cocoapod! On Tue, May 24, 2016 at 1:13 PM, JTAppleCalendar [email protected]
Chuck |
Touch and 3d touch? heh.. i dont even have an iPhone6 :( And glad you enjoyed the pod. The others here on github was giving me a headache |
FYI a cellInset of 0,0 still gives sketchy results on the grid display. |
taking a look |
It looks fine on mines
|
Ok i think i see something. It still leaves a space. It is a line that is off by one pixel. Fixing this issue now. It happens when i do an orientation change. |
Hmm.. on second thought. I cant tell if it is an error without looking to see if it is on a real device. The line space disappears when i zoom in the iOS simulator by pressing the CMD + 1 or CMD + 2 or CMD + 3 keys. You will have to tell me specifically what you are seeing. Looking into it further |
default scrolling (so paged?) inset 0,0 gives results similar to the first image in the original issue. On Tue, May 24, 2016 at 1:49 PM, JTAppleCalendar [email protected]
Chuck |
Could be. I know that only some of the lines show when the inset is 0,0. My On Tue, May 24, 2016 at 2:03 PM, JTAppleCalendar [email protected]
Chuck |
When inset is 0, 0, this is what I see: [image: Inline image 1] Different lines are missing when I scroll the calendar, but the same lines On Tue, May 24, 2016 at 2:07 PM, JTAppleCalendar [email protected]
Chuck |
not seeing the image. its not showing on github. But i think i get it. Similar issue? Alright. Will look into this |
Tell you what. Set the inset to -1, -1 as a work around. I'll have to look into this after dinner |
Ok, i have found fixed this issue and pushed it to github. |
I understand. do a clone of this repository --> https://github.com/patchthecode/JTAppleCalendar.git The file names are:
Once you replace these 3 files, you should now have the fix. Let me know if the fix worked. |
Thanks! I'm working on another (unrelated) issue. As soon as that's solved I'll Chuck On Tue, May 24, 2016 at 8:03 PM, JTAppleCalendar [email protected]
Chuck |
Should be fixed in version 4.0.0 |
@hanishassim is it possible you can give me a copy of your |
Hmm. It seems ok there. Would it be possible if i could see the bugged project? Or is it private? |
Could you share the screenshot? Sorry but I can't share the project.. |
Understood. Hmm. Alright then i'll have to debug this on my end. In the mean time, try setting the inset to (-0.5, -0.5) or (-1, -1) as a work around (you can choose what ever number you like). Will get back to you. |
Ok. I just setup the calendar.
|
|
Alright then, so in order for me the recreate the (0,0) error it seems i have to create a selected background view that is not circular in shape. I will do as you did and use a UIImageView and fill the cell to see if i can recreate it. And btw, you can use any view on your calendar. So long as it can be dragged unto the canvas, it can be used. I will now attempt to recreate your pixel error. |
thanks noted. |
Closed. if cellInset.x == 0 { cellInset.x = -0.1 }
if cellInset.y == 0 { cellInset.y = -0.1 } |
I have a three month calendar (June - Aug, 2016). I've attached three images.
First is how the calendar initially appears, second is when I scroll from June to July and third is when I scroll back to June.
Here's the additional code in my controller:
setupViewsOfCalendar is from the tutorial.
The text was updated successfully, but these errors were encountered: