cbess/AutoScrollLabel

Resizing issue

Closed this issue · 0 comments

When you add autoscrolllabel to your project, set a uiview in Interface Builder and put autoscroller inside the uiview.
Then you go into the ruler and set the sizing to lock right, left, make all views cut subviews.

Then when you resize the uiview that is parent view to the autoscroller the autoscroller will not resize correctly.

In short, lock size, resize superview and autoscroller will not resize correctly.

Here is a simple code from a test project :
This is just a button that resizes the parent view to autoscrolllabel. As simple as it gets.

- (IBAction)resize:(id)sender {
    CGRect frame = backgroundView.frame;
     frame.size.width -= 30;

    backgroundView.frame = frame;

}