summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaehyub <taehyub.kim@samsung.com>2016-03-15 11:49:48 -0700
committerCedric Bail <cedric@osg.samsung.com>2016-03-15 11:49:53 -0700
commit3848e321f328728f76ee1132ca2df2ca703f82d3 (patch)
tree9c39024b47156d20b7bba68c9bf1181e46142267
parent5d0f5cfdf541c2c54cc3744d3a6c57dcbfb39989 (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;