diff options
author | Gustavo Lima Chaves <glima@profusion.mobi> | 2013-06-13 18:12:53 -0300 |
---|---|---|
committer | Gustavo Lima Chaves <glima@profusion.mobi> | 2013-06-13 18:12:53 -0300 |
commit | 358721624ce234ba35659997c3a8e107ba08bd4c (patch) | |
tree | ebba81f3301d313bff6c96923f17affa8c10c09d | |
parent | 04ad875c1f4568489dcd58d75178d29580f0ba07 (diff) | |
download | elementary-358721624ce234ba35659997c3a8e107ba08bd4c.tar.gz |
Backporting b2e044a3c249eac461446cafe4a18f29cc75e835
"Fix elm_scroller_child_size_get() to work all scrollables.
My bad on this one, it was never made to act like so since my
new widget schema."
-rw-r--r-- | src/lib/elm_interface_scrollable.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elm_interface_scrollable.c b/src/lib/elm_interface_scrollable.c index ded753bb1..0e1578599 100644 --- a/src/lib/elm_interface_scrollable.c +++ b/src/lib/elm_interface_scrollable.c @@ -1044,10 +1044,9 @@ _elm_scroll_content_size_get(const Evas_Object *obj, Evas_Coord *h) { ELM_SCROLL_IFACE_DATA_GET_OR_RETURN(obj, sid); + ELM_PAN_DATA_GET(sid->pan_obj, psd); - if (!sid->content) return; - - evas_object_geometry_get(sid->content, NULL, NULL, w, h); + psd->api->content_size_get(sid->pan_obj, w, h); } static void |