forked from enlightenment/www-content
samples: update the controlling minimum size sample code.
We recommend app to use ELM_SCALE_SIZE() rather than scale_get() for portability.
This commit is contained in:
parent
90407afe39
commit
c72083daeb
|
@ -64,7 +64,7 @@ elm_main(int argc, char **argv)
|
|||
rec = evas_object_rectangle_add(evas_object_evas_get(win));
|
||||
evas_object_size_hint_weight_set(rec, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(rec, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
evas_object_size_hint_min_set(rec, 200 * elm_config_scale_get(), 300 * elm_config_scale_get());
|
||||
evas_object_size_hint_min_set(rec, ELM_SCALE_SIZE(200), ELM_SCALE_SIZE(300));
|
||||
elm_table_pack(tab, rec, 0, 0, 1, 1);
|
||||
|
||||
btn = elm_button_add(win);
|
||||
|
@ -86,4 +86,4 @@ ELM_MAIN()
|
|||
|
||||
----
|
||||
|
||||
~~DISCUSSIONS~~
|
||||
~~DISCUSSIONS~~
|
||||
|
|
Loading…
Reference in New Issue