generate bubble pos from window not from widget

This commit is contained in:
Qua-non 2012-01-10 20:28:46 +05:30
parent 1b2f8dce31
commit 095368d070
1 changed files with 3 additions and 1 deletions

View File

@ -481,7 +481,9 @@ class TextInput(Widget):
bubble.add_widget(but_paste)
else:
win.remove_widget(self._bubble)
t_pos = touch.pos
x, y = touch.pos
#get window position in case
t_pos = self.to_window(x, y)
bubble_size = bubble.size
win_size = win.size
bubble.pos = (t_pos[0] - bubble_size[0]/2,