screenmanager: ensure the position is reset to the position of the screenmanager

This commit is contained in:
Mathieu Virbel 2012-07-28 12:16:23 +02:00
parent 70d756e9dd
commit 325a0f31f9
1 changed files with 4 additions and 4 deletions

View File

@ -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):