mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 16:30:15 +00:00
window: Subtract shadow from passed in width for height
... and height for width in size requests. Fixes mislayout in control-center universal access panel.
This commit is contained in:
parent
73aa7bd2f5
commit
8b15cd33ee
@ -8405,6 +8405,8 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
|
||||
{
|
||||
get_shadow_width (widget, &window_border);
|
||||
|
||||
height -= window_border.top + window_border.bottom;
|
||||
|
||||
if (priv->title_box != NULL &&
|
||||
gtk_widget_get_visible (priv->title_box) &&
|
||||
gtk_widget_get_child_visible (priv->title_box))
|
||||
@ -8515,6 +8517,8 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
|
||||
{
|
||||
get_shadow_width (widget, &window_border);
|
||||
|
||||
width -= window_border.left + window_border.right;
|
||||
|
||||
if (priv->title_box != NULL &&
|
||||
gtk_widget_get_visible (priv->title_box) &&
|
||||
gtk_widget_get_child_visible (priv->title_box))
|
||||
|
Loading…
Reference in New Issue
Block a user