summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaehyub <taehyub.kim@samsung.com>2016-03-15 11:49:48 -0700
committerYoungbok Shin <youngb.shin@samsung.com>2016-03-16 19:26:13 +0900
commit4c7f489e02a364d4c9c102f230c6d26a738b1256 (patch)
tree6b5e237e7922414aa0903fd537253b27bc4b1150
parent5b4bc8e0de150196ff852c0645e3b934f3a1bc49 (diff)
interface_scrollable: fix the getting scroll view port size
Summary: 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 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 <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_interface_scrollable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_interface_scrollable.c b/src/lib/elm_interface_scrollable.c
index 14b522ac1..f40552ceb 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)
801 minx = 0, miny = 0; 801 minx = 0, miny = 0;
802 double vx, vy, size; 802 double vx, vy, size;
803 803
804 edje_object_calc_force(sid->edje_obj);
804 edje_object_part_geometry_get 805 edje_object_part_geometry_get
805 (sid->edje_obj, "elm.swallow.content", NULL, NULL, &vw, &vh); 806 (sid->edje_obj, "elm.swallow.content", NULL, NULL, &vw, &vh);
806 w = sid->content_info.w; 807 w = sid->content_info.w;