projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a3a29e
)
Elm box: Respect alignment hints.
author
tasn
<tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 11:54:36 +0000
(11:54 +0000)
committer
tasn
<tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 11:54:36 +0000
(11:54 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62252
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/els_box.c
patch
|
blob
|
history
diff --git
a/src/lib/els_box.c
b/src/lib/els_box.c
index
e84c27d
..
4c0dde2
100644
(file)
--- 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)