forked from enlightenment/edi
elm_code: When appending lines ignore widget size now we're scrolling
This commit is contained in:
parent
be7119c787
commit
3d65bbc456
|
@ -184,16 +184,13 @@ _elm_code_widget_line_cb(void *data, Eo *obj EINA_UNUSED,
|
|||
{
|
||||
Elm_Code_Widget_Data *widget;
|
||||
Elm_Code_Line *line;
|
||||
int h;
|
||||
|
||||
Evas_Textgrid_Cell *cells;
|
||||
|
||||
widget = (Elm_Code_Widget_Data *)data;
|
||||
line = (Elm_Code_Line *)event_info;
|
||||
|
||||
evas_object_textgrid_size_get(widget->grid, NULL, &h);
|
||||
|
||||
if (line->number > (unsigned int) h)
|
||||
if (!_elm_code_widget_resize(widget))
|
||||
return EINA_TRUE;
|
||||
|
||||
cells = evas_object_textgrid_cellrow_get(widget->grid, line->number - 1);
|
||||
|
|
Loading…
Reference in New Issue