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:
Hermet Park 2016-06-24 12:10:34 +09:00
parent 90407afe39
commit c72083daeb
1 changed files with 2 additions and 2 deletions

View File

@ -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~~