[gnome-builder/wip/project-selector: 18/67] 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/project-selector: 18/67] scrolledwindow: add additional padding to ensure space for child
- Date: Mon, 6 Apr 2015 21:30:41 +0000 (UTC)
commit 9c912542f6fffed39eb54cdbcbfd8a8d06294d11
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]