elm_code: When appending lines ignore widget size now we're scrolling

This commit is contained in:
Andy Williams 2015-01-28 00:20:58 +00:00
parent be7119c787
commit 3d65bbc456
1 changed files with 1 additions and 4 deletions

View File

@ -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);