cedric pushed a commit to branch master.


commit 3848e321f328728f76ee1132ca2df2ca703f82d3
Author: taehyub <taehyub....@samsung.com>
Date:   Tue Mar 15 11:49:48 2016 -0700

    interface_scrollable: fix the getting scroll view port size
    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.
    Test Plan:
    1. set scroller auto mode
    2. make vbar and hbar by resizing scroller content
    3. make hbar disappear by resizing scroller content
    4. see the vbar size whether it is correct or not
    Reviewers: Hermet, Jaehyun_Cho, NikaWhite, cedric
    Reviewed By: cedric
    Subscribers: cedric
    Differential Revision: https://phab.enlightenment.org/D3779
    Signed-off-by: Cedric Bail <ced...@osg.samsung.com>
 src/lib/elm_interface_scrollable.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_interface_scrollable.c 
index 14b522a..f40552c 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -801,6 +801,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);
           (sid->edje_obj, "elm.swallow.content", NULL, NULL, &vw, &vh);
         w = sid->content_info.w;


Reply via email to