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

Rotation resize #11

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Rotation resize #11

wants to merge 12 commits into from

Conversation

djbe
Copy link

@djbe djbe commented Dec 2, 2013

When rotating to landscape, the parallax view does not get resized...

portrait:
portrait

landscape:
landscape

A fix for this is modifying this line of code (line 174):

[self setAutoresizingMask:UIViewAutoresizingFlexibleHeight];

to

[self setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];

and also a bit further down (line 179)

[self.imageView setAutoresizingMask:UIViewAutoresizingFlexibleHeight];

to

[self.imageView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];

@jacksonh
Copy link

jacksonh commented Mar 3, 2014

This patch also needs to change the auto resizing mask on the shadow view:

[self.shadowView setAutoresizingMask:UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleWidth];

@Jeehut
Copy link

Jeehut commented Nov 27, 2014

As I need a different height in landscape mode than in portrait mode, this pull request didn't solve my problem. So I created my own solution, see my pull request: #26.

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

Successfully merging this pull request may close these issues.

None yet

5 participants