mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
box gadget: Fix baseline calculation
Careful comparison with GtkBox revealed that the box gadget code was confusing up and down, and thus shifted baselines vertically.
This commit is contained in:
parent
57baf6804b
commit
50e923349e
@ -223,10 +223,10 @@ gtk_box_gadget_measure_opposite (GtkCssGadget *gadget,
|
||||
|
||||
if (child_min_baseline >= 0)
|
||||
{
|
||||
above_min = MAX (above_min, child_min - child_min_baseline);
|
||||
below_min = MAX (below_min, child_min_baseline);
|
||||
above_nat = MAX (above_nat, child_nat - child_nat_baseline);
|
||||
below_nat = MAX (below_nat, child_nat_baseline);
|
||||
below_min = MAX (below_min, child_min - child_min_baseline);
|
||||
above_min = MAX (above_min, child_min_baseline);
|
||||
below_nat = MAX (below_nat, child_nat - child_nat_baseline);
|
||||
above_nat = MAX (above_nat, child_nat_baseline);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user