From 51aa3eef66b854e2dd8dde5acaad11566b75d3e0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 9 Aug 2011 11:54:36 +0000 Subject: [PATCH] Elm box: Respect alignment hints. SVN revision: 62252 --- src/lib/els_box.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/els_box.c b/src/lib/els_box.c index e84c27d..4c0dde2 100644 --- a/src/lib/els_box.c +++ b/src/lib/els_box.c @@ -69,6 +69,7 @@ _els_box_layout(Evas_Object *o, Evas_Object_Box_Data *priv, int horizontal, int evas_object_size_hint_min_get(o, &minw, &minh); evas_object_size_hint_align_get(o, &ax, &ay); count = eina_list_count(priv->children); + if (rtl) ax = 1.0 - ax; if (w < minw) { @@ -97,6 +98,7 @@ _els_box_layout(Evas_Object *o, Evas_Object_Box_Data *priv, int horizontal, int if (!expand) { evas_object_size_hint_align_get(o, &ax, &ay); + if (rtl) ax = 1.0 - ax; if (horizontal) { x += (double)(w - minw) * ax; @@ -127,6 +129,7 @@ _els_box_layout(Evas_Object *o, Evas_Object_Box_Data *priv, int horizontal, int xw = xh = 0; if (ax == -1.0) {fw = 1; ax = 0.5;} if (ay == -1.0) {fh = 1; ay = 0.5;} + if (rtl) ax = 1.0 - ax; if (wx > 0.0) xw = 1; if (wy > 0.0) xh = 1; if (horizontal) -- 2.7.4