Updates:
        Status: New

Comment #21 on issue 1444 by takao.fujiwara1: The candidate box would exceed the screen bottom when I use multiple monitors
http://code.google.com/p/ibus/issues/detail?id=1444

Sorry, I mistook the position of candidate window for one of languagebar.
But my candidate window has no problem.

Could you try the following debug codes?


--- /usr/share/ibus/ui/gtk/candidatepanel.py.orig
+++ /usr/share/ibus/ui/gtk/candidatepanel.py
@@ -480,6 +480,7 @@ class CandidatePanel(gtk.VBox):
         self.__toplevel.resize(1, 1)

     def __check_position(self):
+        print "test1", self.__cursor_location, self.__toplevel.allocation
cursor_location = self.__moved_cursor_location or self.__cursor_location

         cursor_right = cursor_location[0] + cursor_location[2]
@@ -490,6 +491,7 @@ class CandidatePanel(gtk.VBox):

         root_window = gdk.get_default_root_window()
         sx, sy = root_window.get_size()
+        print "test2", sx, sy

         if window_right > sx:
             x = sx - self.__toplevel.allocation.width
@@ -502,6 +504,7 @@ class CandidatePanel(gtk.VBox):
         else:
             y = cursor_bottom

+        print "test3", x, y
         self.move(x, y)

     def show_all(self):


--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复