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)
downloadelementary-b864efac655980916a902a91462c0a3d44bb06e9.tar.gz
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)
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();