netstar pushed a commit to branch master.

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

commit b4fb7574fbe69da98e902e71188e1b8defc1f522
Author: Alastair Poole <nets...@gmail.com>
Date:   Sun Sep 6 23:08:11 2020 +0100

    ui: block horiz scroll.
    
    Our genlist area grows, but we align our table/text...
    Block the horiz scroll to hide this hack :)
---
 src/bin/ui/ui.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/ui/ui.c b/src/bin/ui/ui.c
index 168b24e..341a300 100644
--- a/src/bin/ui/ui.c
+++ b/src/bin/ui/ui.c
@@ -479,6 +479,7 @@ _content_get(void *data, Evas_Object *obj, const char 
*source)
    evas_object_show(l);
 
    evas_object_show(it->obj);
+   // Let the genlist resize but align the text.
    elm_table_align_set(it->obj, 0, 0.5);
 
    return it->obj;
@@ -1390,6 +1391,7 @@ _ui_content_system_add(Ui *ui)
    ui->scroller = ui->genlist_procs = plist = elm_genlist_add(parent);
    elm_scroller_gravity_set(ui->scroller, 0.0, 1.0);
    elm_object_focus_allow_set(plist, EINA_FALSE);
+   elm_scroller_movement_block_set(ui->scroller, 
ELM_SCROLLER_MOVEMENT_BLOCK_HORIZONTAL);
    elm_scroller_policy_set(ui->scroller, ELM_SCROLLER_POLICY_OFF,
                    ELM_SCROLLER_POLICY_AUTO);
    elm_genlist_homogeneous_set(plist, EINA_TRUE);

-- 


Reply via email to