efl_ui_scroll_util: emit edc signal that fix scroll arrow visibility

Summary:
"efl,action,scroll" signal will update arrow state.

ref T8051

Test Plan: elementary_test -to 'efl.ui.scroller'

Reviewers: eagleeye, bu5hm4n, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8051

Differential Revision: https://phab.enlightenment.org/D9649
This commit is contained in:
Yeongjong Lee 2019-08-20 09:07:02 -04:00 committed by Mike Blumenkrantz
parent e850e3e5dc
commit 8f32138f1f
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ _scroll_connector_bar_size_changed_cb(void *data, const Efl_Event *event EINA_UN
efl_ui_scrollbar_bar_size_get(ctx->smanager, &width, &height);
edje_object_part_drag_size_set(wd->resize_obj, "efl.dragable.hbar", width, 1.0);
edje_object_part_drag_size_set(wd->resize_obj, "efl.dragable.vbar", 1.0, height);
efl_layout_signal_emit(wd->resize_obj, "efl,action,scroll", "efl");
}
static void
@ -183,6 +184,7 @@ _scroll_connector_bar_pos_changed_cb(void *data, const Efl_Event *event EINA_UNU
efl_ui_scrollbar_bar_position_get(ctx->smanager, &posx, &posy);
edje_object_part_drag_value_set(wd->resize_obj, "efl.dragable.hbar", posx, 0.0);
edje_object_part_drag_value_set(wd->resize_obj, "efl.dragable.vbar", 0.0, posy);
efl_layout_signal_emit(wd->resize_obj, "efl,action,scroll", "efl");
}
static void