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')
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()