ShellGenericContainer: adjust requested height/width for border/padding
https://bugzilla.gnome.org/show_bug.cgi?id=614293
This commit is contained in:
parent
b8647cc00e
commit
8dd572d1cc
@ -95,6 +95,8 @@ shell_generic_container_get_preferred_width (ClutterActor *actor,
|
|||||||
if (natural_width_p)
|
if (natural_width_p)
|
||||||
*natural_width_p = alloc->natural_size;
|
*natural_width_p = alloc->natural_size;
|
||||||
shell_generic_container_allocation_unref (alloc);
|
shell_generic_container_allocation_unref (alloc);
|
||||||
|
|
||||||
|
st_theme_node_adjust_preferred_width (theme_node, min_width_p, natural_width_p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -116,6 +118,8 @@ shell_generic_container_get_preferred_height (ClutterActor *actor,
|
|||||||
if (natural_height_p)
|
if (natural_height_p)
|
||||||
*natural_height_p = alloc->natural_size;
|
*natural_height_p = alloc->natural_size;
|
||||||
shell_generic_container_allocation_unref (alloc);
|
shell_generic_container_allocation_unref (alloc);
|
||||||
|
|
||||||
|
st_theme_node_adjust_preferred_height (theme_node, min_height_p, natural_height_p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user