jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b864efac655980916a902a91462c0a3d44bb06e9

commit b864efac655980916a902a91462c0a3d44bb06e9
Author: Aditya Raj <aditya1....@samsung.com>
Date:   Tue Nov 24 13:27:53 2015 +0900

    Popup Example: Fix size calculation issue in popup
    
    Summary:
    The function evas_object_resize(win, 480, 800) was being called after 
evas_object_show(popup)
    so size calculations of popup were going wrong(height was 0).
    It should be called before creating popup as win is parent of popup,
    This fix needs to be done only here as in other cases window is already 
present before creating popup
    but here both are being created for exmaple purposes.
    
    Signed-off-by: Aditya Raj <aditya1....@samsung.com>
    
    Reviewers: singh.amitesh, raster
    
    Subscribers: jpeg, tanwar.umesh07, sachin.dev
    
    Differential Revision: https://phab.enlightenment.org/D3360
---
 src/examples/popup_example_03.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/examples/popup_example_03.c b/src/examples/popup_example_03.c
index 39cd7ea..d367081 100644
--- a/src/examples/popup_example_03.c
+++ b/src/examples/popup_example_03.c
@@ -18,6 +18,7 @@ elm_main(int argc, char **argv)
 
    win = elm_win_util_standard_add("popup", "Popup");
    elm_win_autodel_set(win, EINA_TRUE);
+   evas_object_resize(win, 480, 800);
 
    popup = elm_popup_add(win);
 
@@ -69,7 +70,6 @@ elm_main(int argc, char **argv)
    //Display the popup object
    evas_object_show(popup);
 
-   evas_object_resize(win, 480, 800);
    evas_object_show(win);
 
    elm_run();

-- 


Reply via email to