forked from enlightenment/efl
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
This commit is contained in:
parent
6325a30a3a
commit
dc91c42346
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue