elm_test: Set label as word wrap

This exposes an elm_win sizing bug. To test (under X):
  ELM_DISABLE_EXTERNAL_MENU=1 elementary_test -to "Main Menu"

The layout is not completely wrong 100% of the time, but it is
exactly correct 0% of the time. Window sizing is our flying
spaghetti monster.
This commit is contained in:
Jean-Philippe Andre 2017-07-18 18:06:17 +09:00
parent 521f41f536
commit f1bcd804ec
1 changed files with 3 additions and 2 deletions

View File

@ -50,8 +50,9 @@ test_main_menu(void *data EINA_UNUSED,
label = elm_label_add(win);
elm_object_text_set(label, "(ELM_DISABLE_EXTERNAL_MENU environment "
"variable is set. Using local menu instead)");
evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_label_line_wrap_set(label, ELM_WRAP_WORD);
elm_box_pack_end(bx, label);
evas_object_show(label);
}