interface_scrollable: fix the getting scroll view port size (opensource fix) 71/92671/1
authorJinYong Park <j4939.park@samsung.com>
Tue, 18 Oct 2016 05:19:37 +0000 (14:19 +0900)
committerJinYong Park <j4939.park@samsung.com>
Tue, 18 Oct 2016 05:19:37 +0000 (14:19 +0900)
In auto scroller mode, both of vbar and hbar of scroller is created when scroller content size is getting large.
At the state, If we make hbar disappear by resizing scroller content, vbar size is set to small.
Because at the moment, the width and height of elm.swallow.content of sid->edje_obj are zero.

@fix

https://phab.enlightenment.org/D3779

Change-Id: I7b91f9e19912073241069a7480a4dd0ee465a1b7

src/lib/elm_interface_scrollable.c

index b06abfbe7bcf55c36d4d455946f433c962b93f6d..cdc275a89352d3ef31fe12cb304803a8a4c9df8f 100644 (file)
@@ -755,6 +755,7 @@ _elm_scroll_scroll_bar_size_adjust(Elm_Scrollable_Smart_Interface_Data *sid)
                    minx = 0, miny = 0;
         double vx, vy, size;
 
+        edje_object_calc_force(sid->edje_obj);
         edje_object_part_geometry_get
           (sid->edje_obj, "elm.swallow.content", NULL, NULL, &vw, &vh);
         w = sid->content_info.w;