ui: sizing.
Two simple changes that have a *positive* effect on sizing. Initial sizing and then bogus field sizing bogusly...
This commit is contained in:
parent
39593732dc
commit
933e0ab15a
|
@ -26,8 +26,7 @@ _win_add(void)
|
|||
icon = elm_icon_add(win);
|
||||
elm_icon_standard_set(icon, "evisum");
|
||||
elm_win_icon_object_set(win, icon);
|
||||
evas_object_resize(win, EVISUM_SIZE_WIDTH * elm_config_scale_get(),
|
||||
EVISUM_SIZE_HEIGHT * elm_config_scale_get());
|
||||
evas_object_resize(win, 1, EVISUM_SIZE_HEIGHT * elm_config_scale_get());
|
||||
elm_win_title_set(win, _("EFL System Monitor"));
|
||||
elm_win_center(win, EINA_TRUE, EINA_TRUE);
|
||||
|
||||
|
|
|
@ -438,7 +438,7 @@ _content_get(void *data, Evas_Object *obj, const char *source)
|
|||
|
||||
evas_object_geometry_get(ui->btn_cmd, NULL, NULL, &w, NULL);
|
||||
l = evas_object_data_get(it->obj, "proc_cmd");
|
||||
elm_object_text_set(l, eina_slstr_printf("%s", proc->command));
|
||||
elm_object_text_set(l, eina_slstr_printf(" %s", proc->command));
|
||||
evas_object_geometry_get(l, NULL, NULL, &ow, NULL);
|
||||
if (ow > w) evas_object_size_hint_min_set(ui->btn_cmd, w, 1);
|
||||
r = evas_object_data_get(l, "rect");
|
||||
|
|
Loading…
Reference in New Issue