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

Device Rotate Support #7

Open
alexookah opened this issue Oct 15, 2017 · 7 comments
Open

Device Rotate Support #7

alexookah opened this issue Oct 15, 2017 · 7 comments

Comments

@alexookah
Copy link

Hi, great job making this library public. i love it.

I only have faced one problem.

when using this with device rotation enabled. its not resizing correctly.

How can this be fixed?

check this for more info: (used in the example with enabled rotate left,right)
https://streamable.com/phl39

@alexookah alexookah changed the title Landscape Device Rotate Support Device Rotate Support Oct 15, 2017
@shoheiyokoyama
Copy link
Owner

@alexookah
Thank you for reporting the problem.
It may be need to recalculate for animation when rotating the screen 🤔
I will check the problem.

@alexookah
Copy link
Author

alexookah commented Nov 6, 2017

i happened to have some progress with this issue...
when i used gemini inside a tableviewcell.

i implemented some rotation reload table when device rotates. and it seems that gemini is also reloading.
maybe this helps somehow to implement some collectionView.invalidateLayout()???

@lupugabriel
Copy link

any news about this?

p.s. i really think this is a great library.

@alexookah
Copy link
Author

alexookah commented Feb 26, 2018

i finally somehow resolved my issue by doing this:

override func layoutSubviews() { super.layoutSubviews() collectionView.setContentOffset(CGPoint(x: CGFloat(lastPageScroll) * collectionView.frame.width, y: 0), animated: true) }

what do you think?

@rocxteady
Copy link

I have this problem too. :(

@ghost
Copy link

ghost commented Mar 8, 2019

I got same problem too. I need hel in this issue rapidly @shoheiyokoyama

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

No branches or pull requests

5 participants
@rocxteady @lupugabriel @shoheiyokoyama @alexookah and others