summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Raj <aditya1.raj@samsung.com>2015-11-24 13:27:53 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-11-24 13:27:53 +0900
commitb864efac655980916a902a91462c0a3d44bb06e9 (patch)
tree0657e0e0b333f546d0e581f4642d62269d50c2af
parentbb389fc9af335f4916780812ace7273d64e8bceb (diff)
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.raj@samsung.com> Reviewers: singh.amitesh, raster Subscribers: jpeg, tanwar.umesh07, sachin.dev Differential Revision: https://phab.enlightenment.org/D3360
-rw-r--r--src/examples/popup_example_03.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/popup_example_03.c b/src/examples/popup_example_03.c
index 39cd7ea18..d367081f9 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)
18 18
19 win = elm_win_util_standard_add("popup", "Popup"); 19 win = elm_win_util_standard_add("popup", "Popup");
20 elm_win_autodel_set(win, EINA_TRUE); 20 elm_win_autodel_set(win, EINA_TRUE);
21 evas_object_resize(win, 480, 800);
21 22
22 popup = elm_popup_add(win); 23 popup = elm_popup_add(win);
23 24
@@ -69,7 +70,6 @@ elm_main(int argc, char **argv)
69 //Display the popup object 70 //Display the popup object
70 evas_object_show(popup); 71 evas_object_show(popup);
71 72
72 evas_object_resize(win, 480, 800);
73 evas_object_show(win); 73 evas_object_show(win);
74 74
75 elm_run(); 75 elm_run();