mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 15:40:12 +00:00
window: Don't set min_size > size
This fixes the failing reftest.
This commit is contained in:
parent
a95012caa3
commit
f6d9e15c16
@ -4348,8 +4348,8 @@ toplevel_compute_size (GdkToplevel *toplevel,
|
|||||||
|
|
||||||
get_shadow_width (window, &shadow);
|
get_shadow_width (window, &shadow);
|
||||||
|
|
||||||
min_width = default_width + shadow.left + shadow.right;
|
min_width = MIN (default_width + shadow.left + shadow.right, width);
|
||||||
min_height = default_height + shadow.top + shadow.bottom;
|
min_height = MIN (default_height + shadow.top + shadow.bottom, height);
|
||||||
gdk_toplevel_size_set_min_size (size, min_width, min_height);
|
gdk_toplevel_size_set_min_size (size, min_width, min_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user