[gnome-builder/wip/tree-menu: 7/44] scrolledwindow: add additional padding to ensure space for child
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/tree-menu: 7/44] scrolledwindow: add additional padding to ensure space for child
- Date: Fri, 3 Apr 2015 21:08:27 +0000 (UTC)
commit a134f74ac8d66fb2c64dd3d887a28fc1c524bcf4
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 31 14:34:12 2015 -0700
scrolledwindow: add additional padding to ensure space for child
For some reason, our existing padding is no longer enough. I have no idea
where the 1 for this is coming from, but it seems to do the trick.
We could probably do the same for vertical, but until I hit that case,
I don't want to add it.
src/scrolledwindow/gb-scrolled-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/scrolledwindow/gb-scrolled-window.c b/src/scrolledwindow/gb-scrolled-window.c
index 822b3b2..d1ef205 100644
--- a/src/scrolledwindow/gb-scrolled-window.c
+++ b/src/scrolledwindow/gb-scrolled-window.c
@@ -185,7 +185,7 @@ gb_scrolled_window_get_preferred_width (GtkWidget *widget,
gtk_style_context_get_border (style,
gtk_widget_get_state_flags (widget),
&border);
- additional = border.left = border.right;
+ additional = border.left = border.right + 1;
gtk_widget_get_preferred_width (child, &child_min_width,
&child_nat_width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]