forked from enlightenment/evisum
ui: block horiz scroll.
Our genlist area grows, but we align our table/text... Block the horiz scroll to hide this hack :)
This commit is contained in:
parent
43a4122893
commit
b4fb7574fb
|
@ -479,6 +479,7 @@ _content_get(void *data, Evas_Object *obj, const char *source)
|
||||||
evas_object_show(l);
|
evas_object_show(l);
|
||||||
|
|
||||||
evas_object_show(it->obj);
|
evas_object_show(it->obj);
|
||||||
|
// Let the genlist resize but align the text.
|
||||||
elm_table_align_set(it->obj, 0, 0.5);
|
elm_table_align_set(it->obj, 0, 0.5);
|
||||||
|
|
||||||
return it->obj;
|
return it->obj;
|
||||||
|
@ -1390,6 +1391,7 @@ _ui_content_system_add(Ui *ui)
|
||||||
ui->scroller = ui->genlist_procs = plist = elm_genlist_add(parent);
|
ui->scroller = ui->genlist_procs = plist = elm_genlist_add(parent);
|
||||||
elm_scroller_gravity_set(ui->scroller, 0.0, 1.0);
|
elm_scroller_gravity_set(ui->scroller, 0.0, 1.0);
|
||||||
elm_object_focus_allow_set(plist, EINA_FALSE);
|
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_set(ui->scroller, ELM_SCROLLER_POLICY_OFF,
|
||||||
ELM_SCROLLER_POLICY_AUTO);
|
ELM_SCROLLER_POLICY_AUTO);
|
||||||
elm_genlist_homogeneous_set(plist, EINA_TRUE);
|
elm_genlist_homogeneous_set(plist, EINA_TRUE);
|
||||||
|
|
Loading…
Reference in New Issue