mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
grid-layout: Use correct orientation when requesting preferred child size
Otherwise width and height are swapped. https://bugzilla.gnome.org/show_bug.cgi?id=725722
This commit is contained in:
parent
65c7c4bcb6
commit
70835c904a
@ -510,7 +510,7 @@ compute_request_for_child (ClutterGridRequest *request,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (orientation == CLUTTER_ORIENTATION_VERTICAL)
|
||||
if (orientation == CLUTTER_ORIENTATION_HORIZONTAL)
|
||||
clutter_actor_get_preferred_width (child, -1, minimum, natural);
|
||||
else
|
||||
clutter_actor_get_preferred_height (child, -1, minimum, natural);
|
||||
|
Loading…
Reference in New Issue
Block a user