netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=933e0ab15a50ecafd4be86c8e609be435e4d617f

commit 933e0ab15a50ecafd4be86c8e609be435e4d617f
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue May 26 11:39:44 2020 +0100

    ui: sizing.
    
    Two simple changes that have a *positive* effect on sizing.
    Initial sizing and then bogus field sizing bogusly...
---
 src/bin/main.c  | 3 +--
 src/bin/ui/ui.c | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 7e9903d..b40de32 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -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);
 
diff --git a/src/bin/ui/ui.c b/src/bin/ui/ui.c
index 963276c..1d811ec 100644
--- a/src/bin/ui/ui.c
+++ b/src/bin/ui/ui.c
@@ -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");

-- 


Reply via email to