Skip to content

Commit fe1d9be

Browse files
authored
Merge pull request kivy#7770 from pythonic64/bugfix-remove_bind_to_softinput_mode_and_keyboard_in_window_base
WindowBase: Update bind list of properties: system_size, size, width, height and center
2 parents 90a4e75 + 6e527a4 commit fe1d9be

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

kivy/core/window/__init__.py

Lines changed: 6 additions & 13 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', '_density'))
496494
'''Rotated window width.
497495
498496
:attr:`width` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -509,9 +507,8 @@ 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,
511+
bind=('_rotation', '_size', '_density'))
515512
'''Rotated window height.
516513
517514
:attr:`height` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -520,9 +517,7 @@ def _get_height(self):
520517
def _get_center(self):
521518
return self.width / 2., self.height / 2.
522519

523-
center = AliasProperty(_get_center,
524-
bind=('width', 'height', '_density'),
525-
cache=True)
520+
center = AliasProperty(_get_center, bind=('width', 'height'))
526521
'''Center of the rotated window.
527522
528523
.. versionadded:: 1.0.9
@@ -697,9 +692,7 @@ def _get_system_size(self):
697692
return self._size
698693

699694
system_size = AliasProperty(_get_system_size, _set_system_size,
700-
bind=('_size', 'softinput_mode',
701-
'keyboard_height'),
702-
cache=True)
695+
bind=('_size',))
703696
'''Real size of the window ignoring rotation. If the density is
704697
not 1, the :attr:`system_size` is the :attr:`size` divided by
705698
density.

0 commit comments

Comments
 (0)