From 2d174322daf115c3efad00b4aeeba3a2441c3120 Mon Sep 17 00:00:00 2001 From: akshayaurora Date: Thu, 26 May 2016 03:09:31 +0530 Subject: [PATCH] take account device density, for `softinput_mode` --- recipes/ios/src/ios.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/ios/src/ios.pyx b/recipes/ios/src/ios.pyx index 32e8dc1..05e9831 100644 --- a/recipes/ios/src/ios.pyx +++ b/recipes/ios/src/ios.pyx @@ -196,7 +196,7 @@ class IOSKeyboard(object): @protocol('KeyboardDelegates') def keyboardWillShow(self, notification): - self.kheight = notification.userInfo().objectForKey_( + self.kheight = get_scale() * notification.userInfo().objectForKey_( 'UIKeyboardFrameEndUserInfoKey').CGRectValue().size.height from kivy.core.window import Window Window.trigger_keyboard_height()