@@ -445,9 +445,7 @@ def _set_size(self, size):
445
445
and defaults to True.
446
446
'''
447
447
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' ))
451
449
'''Get the rotated size of the window. If :attr:`rotation` is set, then the
452
450
size will change to reflect the rotation.
453
451
@@ -492,7 +490,7 @@ def _get_width(self):
492
490
return _size [0 ]
493
491
return _size [1 ]
494
492
495
- width = AliasProperty (_get_width , None , bind = ('_rotation' , '_size' ))
493
+ width = AliasProperty (_get_width , bind = ('_rotation' , '_size' , '_density ' ))
496
494
'''Rotated window width.
497
495
498
496
:attr:`width` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -509,9 +507,8 @@ def _get_height(self):
509
507
return _size [1 ] - kb
510
508
return _size [0 ] - kb
511
509
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' ))
515
512
'''Rotated window height.
516
513
517
514
:attr:`height` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -520,9 +517,7 @@ def _get_height(self):
520
517
def _get_center (self ):
521
518
return self .width / 2. , self .height / 2.
522
519
523
- center = AliasProperty (_get_center ,
524
- bind = ('width' , 'height' , '_density' ),
525
- cache = True )
520
+ center = AliasProperty (_get_center , bind = ('width' , 'height' ))
526
521
'''Center of the rotated window.
527
522
528
523
.. versionadded:: 1.0.9
@@ -697,9 +692,7 @@ def _get_system_size(self):
697
692
return self ._size
698
693
699
694
system_size = AliasProperty (_get_system_size , _set_system_size ,
700
- bind = ('_size' , 'softinput_mode' ,
701
- 'keyboard_height' ),
702
- cache = True )
695
+ bind = ('_size' ,))
703
696
'''Real size of the window ignoring rotation. If the density is
704
697
not 1, the :attr:`system_size` is the :attr:`size` divided by
705
698
density.
0 commit comments