lib: allow shrinking display

This commit is contained in:
Christian Hergert 2023-02-15 17:52:48 -08:00
parent 62f084b0b4
commit 7d7ccea630

View File

@ -670,7 +670,7 @@ mks_display_measure (GtkWidget *widget,
for_size < 0 ? 0 : for_size,
default_width, default_height,
&nat_width, &nat_height);
*minimum = ceil (min_width);
*minimum = 0;
*natural = ceil (nat_width);
}
else
@ -680,7 +680,7 @@ mks_display_measure (GtkWidget *widget,
0,
default_width, default_height,
&nat_width, &nat_height);
*minimum = ceil (min_height);
*minimum = 0;
*natural = ceil (nat_height);
}
}