mirror of https://github.com/kivy/kivy.git
screenmanager: ensure the position is reset to the position of the screenmanager
This commit is contained in:
parent
70d756e9dd
commit
325a0f31f9
|
@ -417,8 +417,8 @@ class SlideTransition(TransitionBase):
|
||||||
a.y = y - height * (1 - progression)
|
a.y = y - height * (1 - progression)
|
||||||
|
|
||||||
def on_complete(self):
|
def on_complete(self):
|
||||||
self.screen_in.pos = (0, 0)
|
self.screen_in.pos = self.manager.pos
|
||||||
self.screen_out.pos = (0, 0)
|
self.screen_out.pos = self.manager.pos
|
||||||
super(SlideTransition, self).on_complete()
|
super(SlideTransition, self).on_complete()
|
||||||
|
|
||||||
|
|
||||||
|
@ -433,8 +433,8 @@ class SwapTransition(TransitionBase):
|
||||||
def on_complete(self):
|
def on_complete(self):
|
||||||
self.screen_in.scale = 1.
|
self.screen_in.scale = 1.
|
||||||
self.screen_out.scale = 1.
|
self.screen_out.scale = 1.
|
||||||
self.screen_in.pos = (0, 0)
|
self.screen_in.pos = self.manager.pos
|
||||||
self.screen_out.pos = (0, 0)
|
self.screen_out.pos = self.manager.pos
|
||||||
super(SwapTransition, self).on_complete()
|
super(SwapTransition, self).on_complete()
|
||||||
|
|
||||||
def on_progress(self, progression):
|
def on_progress(self, progression):
|
||||||
|
|
Loading…
Reference in New Issue