take account device density, for softinput_mode

This commit is contained in:
akshayaurora 2016-05-26 03:09:31 +05:30
parent 72cbbd9710
commit 2d174322da

View file

@ -196,7 +196,7 @@ class IOSKeyboard(object):
@protocol('KeyboardDelegates') @protocol('KeyboardDelegates')
def keyboardWillShow(self, notification): def keyboardWillShow(self, notification):
self.kheight = notification.userInfo().objectForKey_( self.kheight = get_scale() * notification.userInfo().objectForKey_(
'UIKeyboardFrameEndUserInfoKey').CGRectValue().size.height 'UIKeyboardFrameEndUserInfoKey').CGRectValue().size.height
from kivy.core.window import Window from kivy.core.window import Window
Window.trigger_keyboard_height() Window.trigger_keyboard_height()