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_Widget_Data *widget;
|
||||||
Elm_Code_Line *line;
|
Elm_Code_Line *line;
|
||||||
int h;
|
|
||||||
|
|
||||||
Evas_Textgrid_Cell *cells;
|
Evas_Textgrid_Cell *cells;
|
||||||
|
|
||||||
widget = (Elm_Code_Widget_Data *)data;
|
widget = (Elm_Code_Widget_Data *)data;
|
||||||
line = (Elm_Code_Line *)event_info;
|
line = (Elm_Code_Line *)event_info;
|
||||||
|
|
||||||
evas_object_textgrid_size_get(widget->grid, NULL, &h);
|
if (!_elm_code_widget_resize(widget))
|
||||||
|
|
||||||
if (line->number > (unsigned int) h)
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
||||||
cells = evas_object_textgrid_cellrow_get(widget->grid, line->number - 1);
|
cells = evas_object_textgrid_cellrow_get(widget->grid, line->number - 1);
|
||||||
|
|
Loading…
Reference in New Issue