glima pushed a commit to branch elementary-1.7.
commit 358721624ce234ba35659997c3a8e107ba08bd4c
Author: Gustavo Lima Chaves <[email protected]>
Date: Thu Jun 13 18:12:53 2013 -0300
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."
---
src/lib/elm_interface_scrollable.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/lib/elm_interface_scrollable.c
b/src/lib/elm_interface_scrollable.c
index ded753b..0e15785 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
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev