Elm test: Fixed label test's window size.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Oct 2011 16:32:13 +0000 (16:32 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Oct 2011 16:32:13 +0000 (16:32 +0000)
This is actually a pretty important thing to remember.
elm_win_resize_object_add resizes the content to the size of the window,
the size of the window is only applied when the window is shown, at least on
the ecore evas. Is that wanted? or should we take the evas-object geometry
there? The problem I'm worried about is: writing beyond buffer limits.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64579 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_label.c

index 46ea32f..d29b963 100644 (file)
@@ -68,11 +68,10 @@ test_label(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
-   elm_win_resize_object_add(win, bx);
-   evas_object_show(bx);
-
    evas_object_resize(win, 320, 300);
 
+   evas_object_show(bx);
    evas_object_show(win);
+   elm_win_resize_object_add(win, bx);
 }
 #endif