From 095368d07048c330e80e58a93374cccdaadf8e20 Mon Sep 17 00:00:00 2001 From: Qua-non Date: Tue, 10 Jan 2012 20:28:46 +0530 Subject: [PATCH] generate bubble pos from window not from widget --- kivy/uix/textinput.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kivy/uix/textinput.py b/kivy/uix/textinput.py index 4da61d26d..76d0b476a 100644 --- a/kivy/uix/textinput.py +++ b/kivy/uix/textinput.py @@ -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,