Commit 5ce4d158 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Fix calculation error in the (shouldn't happen) case where

Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix
        calculation error in the (shouldn't happen) case where
        option_menu->height < child_requisition.height. (Patch
        from Jacob Berkman, #66969)
parent 9961ddc2
......@@ -461,7 +461,7 @@ gtk_option_menu_size_request (GtkWidget *widget,
MAX (child_requisition.height, option_menu->height) +
CHILD_TOP_SPACING + CHILD_BOTTOM_SPACING + props.focus_width * 2);
tmp = (requisition->height - option_menu->height +
tmp = (requisition->height - MAX (child_requisition.height, option_menu->height) +
props.indicator_size.height + props.indicator_spacing.top + props.indicator_spacing.bottom);
requisition->height = MAX (requisition->height, tmp);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment