Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 84a1837

Browse files
committed
iphone plus bug fix
1 parent 4b9de24 commit 84a1837

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Runtime/Plugins/platform/ios/UIWidgetsViewController.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ -(void)keyboardWillChangeFrame:(NSNotification*)notification {
6565
CGFloat bottom = CGRectGetHeight([[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]);
6666
CGFloat scale = [UIScreen mainScreen].scale;
6767

68+
// scale == 3 => screen is 1242 * 2208 => we have to perform down-sampling to obtain the real length
69+
// 0.8696 = 1920 / 2208, the vertical down-sampling ratio
70+
if (scale == 3) {
71+
bottom = bottom * 0.8696;
72+
}
73+
6874
viewInsets.bottom = bottom * scale;
6975
padding.bottom = 0;
7076

0 commit comments

Comments
 (0)