@@ -490,7 +490,7 @@ def _get_width(self):
490
490
return _size [0 ]
491
491
return _size [1 ]
492
492
493
- width = AliasProperty (_get_width , bind = ('_rotation' , '_size' ))
493
+ width = AliasProperty (_get_width , bind = ('_rotation' , '_size' , '_density' ))
494
494
'''Rotated window width.
495
495
496
496
:attr:`width` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -507,7 +507,8 @@ def _get_height(self):
507
507
return _size [1 ] - kb
508
508
return _size [0 ] - kb
509
509
510
- height = AliasProperty (_get_height , bind = ('_rotation' , '_size' ))
510
+ height = AliasProperty (_get_height ,
511
+ bind = ('_rotation' , '_size' , '_density' ))
511
512
'''Rotated window height.
512
513
513
514
:attr:`height` is a read-only :class:`~kivy.properties.AliasProperty`.
@@ -516,9 +517,7 @@ def _get_height(self):
516
517
def _get_center (self ):
517
518
return self .width / 2. , self .height / 2.
518
519
519
- center = AliasProperty (_get_center ,
520
- bind = ('width' , 'height' , '_density' ),
521
- cache = True )
520
+ center = AliasProperty (_get_center , bind = ('width' , 'height' ))
522
521
'''Center of the rotated window.
523
522
524
523
.. versionadded:: 1.0.9
0 commit comments