elm_code: unbreak previous commit
logs could not be scrolled anymore, because the scroll cb would scroll back to the end.
This commit is contained in:
parent
e947705cee
commit
69efba3efc
|
@ -1596,6 +1596,8 @@ _elm_code_widget_resize(Elm_Code_Widget *widget, Elm_Code_Line *newline)
|
|||
}
|
||||
}
|
||||
|
||||
if (!newline) return;
|
||||
|
||||
if (pd->gravity_x == 1.0 || pd->gravity_y == 1.0)
|
||||
_elm_code_widget_scroll_by(widget,
|
||||
(pd->gravity_x == 1.0 && ww > old_width) ? ww - old_width : 0,
|
||||
|
|
Loading…
Reference in New Issue