mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
lib: allow shrinking display
This commit is contained in:
parent
62f084b0b4
commit
7d7ccea630
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user