We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d6bf2 commit 67b65a1Copy full SHA for 67b65a1
KeyboardConstraint/KeyboardAdjustConstraint.m
@@ -54,6 +54,12 @@ - (void)_keyboardDidChangeVisible:(NSNotification *)notification
54
CGFloat keyboardHeight = CGRectGetMaxY(windowRelativeFrame) - CGRectGetMinY(endFrame);
55
56
if (superview) {
57
+ //Force layout before animation...
58
+ [CATransaction begin];
59
+ [CATransaction setDisableActions:YES];
60
+ [superview layoutIfNeeded];
61
+ [CATransaction commit];
62
+
63
[UIView animateWithDuration:animationDuration
64
delay:0
65
options:animationOptions|UIViewAnimationOptionLayoutSubviews
0 commit comments