mirror of https://github.com/kivy/kivy.git
core/window: fix initial rotation assignment
This commit is contained in:
parent
63f952bae4
commit
2ebe07e9a9
|
@ -325,6 +325,8 @@ class WindowBase(EventDispatcher):
|
|||
if x not in (0, 90, 180, 270):
|
||||
raise ValueError('can rotate only 0, 90, 180, 270 degrees')
|
||||
self._rotation = x
|
||||
if self.initialized is False:
|
||||
return
|
||||
self.dispatch('on_resize', *self.size)
|
||||
self.dispatch('on_rotate', x)
|
||||
|
||||
|
|
Loading…
Reference in New Issue