forked from enlightenment/efl
efl_ui/scroller: directly trigger group_calc if pan is resized during canvas calc
this is the time when all calculations need to be handled, so ensure that the widget directly updates itself here instead of deferring in order to avoid infinite recalc loops Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9592
This commit is contained in:
parent
617bc90f12
commit
6e54c58b9c
|
@ -214,7 +214,10 @@ _efl_ui_scroller_efl_content_content_unset(Eo *obj EINA_UNUSED, Efl_Ui_Scroller_
|
|||
static void
|
||||
_efl_ui_scroller_pan_resized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
|
||||
{
|
||||
efl_canvas_group_change(data);
|
||||
if (efl_canvas_scene_group_objects_calculating_get(evas_object_evas_get(data)))
|
||||
efl_canvas_group_calculate(data);
|
||||
else
|
||||
efl_canvas_group_change(data);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue