mirror of https://github.com/kivy/kivy.git
generate bubble pos from window not from widget
This commit is contained in:
parent
1b2f8dce31
commit
095368d070
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue