Skip to content

Resize foregroundScrollView frame.  #19

Description

@markst

When QMBParallaxScrollViewController's view frame changes the subviews do not update accordingly.

One solution is to update the foregroundScrollView's frame upon view frame observer change:

if ([keyPath isEqualToString:@"frame"]) [self.foregroundScrollView setFrame:(CGRect){{0,0},self.view.frame.size}];

or set the _foregroundScrollView's auto resizing mask

_foregroundScrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions