Backporting b2e044a3c249eac461446cafe4a18f29cc75e835
authorGustavo Lima Chaves <glima@profusion.mobi>
Thu, 13 Jun 2013 21:12:53 +0000 (18:12 -0300)
committerGustavo Lima Chaves <glima@profusion.mobi>
Thu, 13 Jun 2013 21:12:53 +0000 (18:12 -0300)
"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

index ded753bb1691025646b826b0b02fe8f26c933d4c..0e1578599c2e2ef12d45dfc6acf4776ed7b34e1d 100644 (file)
@@ -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