mapbuf - Fix the mapbuf to resize the contents(smart obj) correctly.
authorChunEon Park <chuneon.park@samsung.com>
Thu, 19 Jul 2012 03:27:15 +0000 (12:27 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Thu, 19 Jul 2012 04:07:52 +0000 (13:07 +0900)
When smart obj was set as the contents the _configure would be called recursively.
In this process the lastest size could be reverted to the previous one.

Change-Id: I1d4637b2e8560f658b3897471c58e43271193c4c

packaging/elementary.spec
src/lib/elm_mapbuf.c

index ec24845..c340543 100644 (file)
@@ -1,7 +1,7 @@
 #sbs-git:slp/pkgs/e/elementary elementary 1.0.0+svn.70492slp2+build11
 Name:       elementary
 Summary:    EFL toolkit for small touchscreens
-Version:    1.0.0+svn.70492slp2+build11
+Version:    1.0.0+svn.70492slp2+build12
 Release:    1
 Group:      System/Libraries
 License:    LGPLv2.1
index 4608872..0aae072 100644 (file)
@@ -80,6 +80,7 @@ _mapbuf(Evas_Object *obj)
    Evas_Coord x, y, w, h;
    if (!wd) return;
    evas_object_geometry_get(wd->clip, &x, &y, &w, &h);
+   evas_object_resize(wd->content, w, h);
    if (wd->enabled)
      {
         Evas_Map *m;
@@ -97,7 +98,6 @@ _mapbuf(Evas_Object *obj)
         evas_object_map_set(wd->content, NULL);
         evas_object_map_enable_set(wd->content, EINA_FALSE);
         evas_object_move(wd->content, x, y);
-        evas_object_resize(wd->content, w, h);
      }
 }
 
@@ -127,7 +127,6 @@ _configure(Evas_Object *obj)
                   evas_nochange_pop(e);
                }
           }
-        evas_object_resize(wd->content, w, h);
         _mapbuf(obj);
      }
 }