Skip to content

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.

5 participants