forked from enlightenment/efl
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>
This commit is contained in:
parent
d8f76f5fb6
commit
374a102573
|
@ -801,6 +801,7 @@ _elm_scroll_scroll_bar_size_adjust(Elm_Scrollable_Smart_Interface_Data *sid)
|
||||||
minx = 0, miny = 0;
|
minx = 0, miny = 0;
|
||||||
double vx, vy, size;
|
double vx, vy, size;
|
||||||
|
|
||||||
|
edje_object_calc_force(sid->edje_obj);
|
||||||
edje_object_part_geometry_get
|
edje_object_part_geometry_get
|
||||||
(sid->edje_obj, "elm.swallow.content", NULL, NULL, &vw, &vh);
|
(sid->edje_obj, "elm.swallow.content", NULL, NULL, &vw, &vh);
|
||||||
w = sid->content_info.w;
|
w = sid->content_info.w;
|
||||||
|
|
Loading…
Reference in New Issue