Merge branches 'master' and 'master' of git+ssh://git.enlightenment.org/website/www-content
This commit is contained in:
commit
1eef96c0ea
|
@ -26,7 +26,7 @@ rec = evas_object_rectangle_add(evas_object_evas_get(win));
|
|||
And set some custom size hinting on the rectangle:
|
||||
|
||||
<code c>
|
||||
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));
|
||||
</code>
|
||||
|
||||
And now pack it into the table. Do not show it or do anything else. Keep it hidden. This is your extra control point to adjust sizing of the entire table and its contents. Do not forget that weight and align also affect how the rectangle controls sizing.
|
||||
|
@ -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