Skip to content
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

Layout weekly not correct on the iPad #1334

Open
ortys opened this issue Jul 17, 2021 · 7 comments
Open

Layout weekly not correct on the iPad #1334

ortys opened this issue Jul 17, 2021 · 7 comments

Comments

@ortys
Copy link

ortys commented Jul 17, 2021

(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

@patchthecode
Copy link
Owner

is your calendar fully setup with constraints with zero errors?

@ortys
Copy link
Author

ortys commented Jul 17, 2021

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.

@patchthecode
Copy link
Owner

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

@ortys
Copy link
Author

ortys commented Aug 2, 2021

Schermata 2021-08-02 alle 12 15 24

UPDATE: Now I have some warnings!

@patchthecode
Copy link
Owner

OK.

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

@ortys
Copy link
Author

ortys commented Aug 2, 2021

  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
Copy link
Author

ortys commented Aug 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants