From: Enlightenment S. <no-...@en...> - 2012-12-06 11:47:34
|
Log: elementary/mapbuf - update whenever the content is moved or resized. Author: hermet Date: 2012-12-06 03:47:26 -0800 (Thu, 06 Dec 2012) New Revision: 80348 Trac: http://trac.enlightenment.org/e/changeset/80348 Modified: trunk/elementary/ChangeLog trunk/elementary/NEWS trunk/elementary/src/lib/elm_mapbuf.c Modified: trunk/elementary/ChangeLog =================================================================== --- trunk/elementary/ChangeLog 2012-12-06 11:40:49 UTC (rev 80347) +++ trunk/elementary/ChangeLog 2012-12-06 11:47:26 UTC (rev 80348) @@ -778,3 +778,8 @@ 2012-12-06 Daniel Juyung Seo (SeoZ) * Fix wheel scroll direction with shift. + +2012-12-06 ChunEon Park (Hermet) + + * Fix the mapbuf to show the content always. Sometimes mapbuf couldn't show + the content properly. Modified: trunk/elementary/NEWS =================================================================== --- trunk/elementary/NEWS 2012-12-06 11:40:49 UTC (rev 80347) +++ trunk/elementary/NEWS 2012-12-06 11:47:26 UTC (rev 80348) @@ -81,6 +81,8 @@ * Fix forgotten break in elm_map that would have thrown error when the action was properly taken in fact. * Fix wheel scroll direction with shift. + * Fix the mapbuf to show it's content properly, If the content doesn't + have resized, it wouldn't be showed up. Removals: Modified: trunk/elementary/src/lib/elm_mapbuf.c =================================================================== --- trunk/elementary/src/lib/elm_mapbuf.c 2012-12-06 11:40:49 UTC (rev 80347) +++ trunk/elementary/src/lib/elm_mapbuf.c 2012-12-06 11:47:26 UTC (rev 80348) @@ -117,8 +117,7 @@ Evas_Coord x, y, w, h, x2, y2, w2, h2; evas_object_geometry_get(wd->resize_obj, &x, &y, &w, &h); evas_object_geometry_get(sd->content, &x2, &y2, &w2, &h2); - - if ((x != x2) || (y != y2)) + if ((x != x2) || (y != y2) || (w != w2) || (h != h2)) { if (!sd->enabled) evas_object_move(sd->content, x, y); |