forked from AuroraMiddleware/gtk
frame: Use measure() to measure label size
This commit is contained in:
parent
82d38e35f8
commit
8c128f36c5
@ -920,11 +920,7 @@ gtk_frame_measure (GtkCssGadget *gadget,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (for_size > 0)
|
||||
gtk_widget_get_preferred_height_for_width (priv->label_widget,
|
||||
for_size, &child_min, &child_nat);
|
||||
else
|
||||
gtk_widget_get_preferred_height (priv->label_widget, &child_min, &child_nat);
|
||||
gtk_widget_measure (priv->label_widget, orientation, for_size, &child_min, &child_nat, NULL, NULL);
|
||||
|
||||
*minimum += child_min;
|
||||
*natural += child_nat;
|
||||
|
Loading…
Reference in New Issue
Block a user