Skip to content

Commit 9da08a5

Browse files
committed
WindowBase: Removed binding to softinput_mode and keyboard_height from system_size, size, width and height properties.
1 parent 90a4e75 commit 9da08a5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

kivy/core/window/__init__.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,7 @@ def _set_size(self, size):
445445
and defaults to True.
446446
'''
447447

448-
size = AliasProperty(_get_size, _set_size,
449-
bind=('_size', '_rotation', 'softinput_mode',
450-
'keyboard_height'))
448+
size = AliasProperty(_get_size, _set_size, bind=('_size', '_rotation'))
451449
'''Get the rotated size of the window. If :attr:`rotation` is set, then the
452450
size will change to reflect the rotation.
453451
@@ -492,7 +490,7 @@ def _get_width(self):
492490
return _size[0]
493491
return _size[1]
494492

495-
width = AliasProperty(_get_width, None, bind=('_rotation', '_size'))
493+
width = AliasProperty(_get_width, bind=('_rotation', '_size'))
496494
'''Rotated window width.
497495
498496
:attr:`width` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -509,9 +507,7 @@ def _get_height(self):
509507
return _size[1] - kb
510508
return _size[0] - kb
511509

512-
height = AliasProperty(_get_height, None,
513-
bind=('_rotation', '_size', 'softinput_mode',
514-
'keyboard_height'))
510+
height = AliasProperty(_get_height, bind=('_rotation', '_size'))
515511
'''Rotated window height.
516512
517513
:attr:`height` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -697,9 +693,7 @@ def _get_system_size(self):
697693
return self._size
698694

699695
system_size = AliasProperty(_get_system_size, _set_system_size,
700-
bind=('_size', 'softinput_mode',
701-
'keyboard_height'),
702-
cache=True)
696+
bind=('_size',))
703697
'''Real size of the window ignoring rotation. If the density is
704698
not 1, the :attr:`system_size` is the :attr:`size` divided by
705699
density.

0 commit comments

Comments
 (0)