projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2e6ce
)
[elementary] Missing calc. on a gengrid's call.
author
Gustavo Lima Chaves
<glima@profusion.mobi>
Mon, 25 Jul 2011 19:51:40 +0000
(19:51 +0000)
committer
Gustavo Lima Chaves
<glima@profusion.mobi>
Mon, 25 Jul 2011 19:51:40 +0000
(19:51 +0000)
SVN revision: 61703
src/lib/elm_gengrid.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_gengrid.c
b/src/lib/elm_gengrid.c
index
02eefb6
..
702e7fb
100644
(file)
--- a/
src/lib/elm_gengrid.c
+++ b/
src/lib/elm_gengrid.c
@@
-1907,7
+1907,9
@@
elm_gengrid_align_set(Evas_Object *obj,
double align_y)
{
ELM_CHECK_WIDTYPE(obj, widtype);
+
Widget_Data *wd = elm_widget_data_get(obj);
+ double old_h = wd->align_x, old_y = wd->align_y;
if (align_x > 1.0)
align_x = 1.0;
@@
-1920,6
+1922,9
@@
elm_gengrid_align_set(Evas_Object *obj,
else if (align_y < 0.0)
align_y = 0.0;
wd->align_y = align_y;
+
+ if ((old_h != wd->align_x) || (old_y != wd->align_y))
+ evas_object_smart_calculate(wd->pan_smart);
}
/**