JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Layout weekly not correct on the iPad

Open ortys opened this issue 4 years ago • 7 comments

(Required) Version Number: 8.0.2

I used the JTAppleCalendar for my iPhone app. I need a weekly view, nothing more.

Now that I'm developing the iPad version of the same app, I'm taking advantage of the same class I have on the iPhone with the same features, just enhancing the layout with a second storyboard. I simply reproduce what I have on Main.storyboard on the Main_iPad.storyboard version, reading the same classes with the same functions but arranging the objects differently.

If the same weekly collection in the iPhone storyboard works correctly (I attach image), if I set the contraist of its size on the iPad storyboard, it does not behave correctly. If I change orientation, even worse. I just want it to show 7 days and for the cells to change their width to fit the width of the superview, like a simple collection.

Schermata 2021-07-17 alle 12 24 08 Schermata 2021-07-17 alle 12 25 15 Schermata 2021-07-17 alle 12 25 50

Steps To Reproduce

Expected Behavior

Additional Context

ortys avatar Jul 17 '21 10:07 ortys

is your calendar fully setup with constraints with zero errors?

patchthecode avatar Jul 17 '21 11:07 patchthecode

Yes, no errors. On iPhone works well, on iPad I don't know why there is this problem. If I don't modify the weight of the collection, and I maintain the same dimension of iPhone collection, it works well.

ortys avatar Jul 17 '21 11:07 ortys

hmm.. you have to give me a minimal project example that replicates this issue. emphasis on minimal.

patchthecode avatar Jul 17 '21 13:07 patchthecode

Schermata 2021-08-02 alle 12 15 24 UPDATE: Now I have some warnings!

ortys avatar Aug 02 '21 10:08 ortys

OK.

  1. What xcode version are you using?
  2. What about the last error, is it still there?

patchthecode avatar Aug 02 '21 11:08 patchthecode

  1. Xcode Version 12.5.1 (12E507)
  2. Yes, I can't correct this issue. There is another problem, when I change the orientation, the collection view update the layout, but the cell inside not

ortys avatar Aug 02 '21 12:08 ortys

Simulator Screen Shot - iPad Pro (11-inch) (3rd generation) - 2021-08-02 at 14 32 28

ortys avatar Aug 02 '21 12:08 ortys