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:
		@ -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))
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user