summaryrefslogtreecommitdiff
path: root/gtk/gtkframe.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2007-01-28 06:32:12 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-01-28 06:32:12 +0000
commitf0cb7200632814610734a5112273bf8d70bc8cd8 (patch)
treed778d605800d11cf48d29f68c59d6c913f0b4c4f /gtk/gtkframe.c
parent7f7900aceaf70c211f2f21d3b509d01cc98155df (diff)
downloadgtk+-f0cb7200632814610734a5112273bf8d70bc8cd8.tar.gz
Fix a problem with large y thickness
svn path=/trunk/; revision=17231
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r--gtk/gtkframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index bc4585d398..f5974022fc 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -640,7 +640,7 @@ gtk_frame_size_allocate (GtkWidget *widget,
(frame->child_allocation.width - child_requisition.width - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD) * xalign + LABEL_PAD;
child_allocation.width = child_requisition.width;
- child_allocation.y = frame->child_allocation.y - child_requisition.height;
+ child_allocation.y = frame->child_allocation.y - MAX (child_requisition.height, widget->style->ythickness);
child_allocation.height = child_requisition.height;
gtk_widget_size_allocate (frame->label_widget, &child_allocation);