Index: chrome/browser/gtk/tabs/tab_strip_gtk.cc |
=================================================================== |
--- chrome/browser/gtk/tabs/tab_strip_gtk.cc (revision 19151) |
+++ chrome/browser/gtk/tabs/tab_strip_gtk.cc (working copy) |
@@ -622,7 +622,8 @@ |
gfx::Point TabStripGtk::GetTabStripOriginForWidget(GtkWidget* target) { |
int x, y; |
- if (!gtk_widget_translate_coordinates(widget(), target, 0, 0, &x, &y)) { |
+ if (!gtk_widget_translate_coordinates(widget(), target, |
+ -widget()->allocation.x, 0, &x, &y)) { |
// If the tab strip isn't showing, give the coordinates relative to the |
// toplevel instead. |
gtk_widget_translate_coordinates( |