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:
Jean-Philippe ANDRE 2016-05-16 23:15:21 +09:00
parent e947705cee
commit 69efba3efc
1 changed files with 2 additions and 0 deletions

View File

@ -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,