We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the device is in portrait and the orientation is changed to landscape while the alert is displayed the view is not resized to fit the whole width.
The text was updated successfully, but these errors were encountered:
Just add
self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
to - (id)initWithFrame:(CGRect)frame in RKDropdownAlert.m
additionally add constrains to Labels (after [view addSubview]):
titleLabel.translatesAutoresizingMaskIntoConstraints = NO; messageLabel.translatesAutoresizingMaskIntoConstraints = NO; [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-[titleLabel]-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(titleLabel)]]; [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-[messageLabel]-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(messageLabel)]]; [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-top_spacing-[titleLabel]-bottom_spacing-[messageLabel]-|" options:0 metrics:@{@"top_spacing":@30.0,@"bottom_spacing":@10.0} views:NSDictionaryOfVariableBindings(titleLabel,messageLabel)] ];
Sorry, something went wrong.
auto resizing on screen rotation
4533689
Fix for issue cwRichardKim#17
No branches or pull requests
If the device is in portrait and the orientation is changed to landscape while the alert is displayed the view is not resized to fit the whole width.
The text was updated successfully, but these errors were encountered: