summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/gtk/infobar_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc
index 31e86a5..c97f65b 100644
--- a/chrome/browser/gtk/infobar_gtk.cc
+++ b/chrome/browser/gtk/infobar_gtk.cc
@@ -77,10 +77,11 @@ InfoBar::InfoBar(InfoBarDelegate* delegate)
G_CALLBACK(OnBackgroundExpose), NULL);
gtk_container_add(GTK_CONTAINER(padding), hbox_);
gtk_container_add(GTK_CONTAINER(bg_box), padding);
+ // The -1 on the kInfoBarHeight is to account for the border.
+ gtk_widget_set_size_request(bg_box, -1, kInfoBarHeight - 1);
border_bin_.Own(gtk_util::CreateGtkBorderBin(bg_box, &kBorderColor,
0, 1, 0, 0));
- gtk_widget_set_size_request(border_bin_.get(), -1, kInfoBarHeight);
// Add the icon on the left, if any.
SkBitmap* icon = delegate->GetIcon();