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:
Bastian Winkler 2014-03-11 12:35:03 +01:00
parent 408b7eb625
commit 25a092b604

View File

@ -509,7 +509,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);