diff options
Diffstat (limited to 'chrome/browser/gtk/slide_animator_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/slide_animator_gtk.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/gtk/slide_animator_gtk.cc b/chrome/browser/gtk/slide_animator_gtk.cc index cea09b6..d978316 100644 --- a/chrome/browser/gtk/slide_animator_gtk.cc +++ b/chrome/browser/gtk/slide_animator_gtk.cc @@ -13,13 +13,9 @@ namespace { void OnFixedSizeAllocate(GtkWidget* fixed, GtkAllocation* allocation, GtkWidget* child) { - if (allocation->width != child->allocation.width) { - // The size of the GtkFixed has changed. We want |child_| to match widths, - // but the height should not change. - GtkAllocation new_allocation = child->allocation; - new_allocation.width = allocation->width; - gtk_widget_size_allocate(child, &new_allocation); - } + // The size of the GtkFixed has changed. We want |child_| to match widths, + // but the height should not change. + gtk_widget_set_size_request(child, allocation->width, -1); } } // namespace |