forked from enlightenment/efl
Evas textblock: Fixed cursor position empty right aligned textblocks.
Thanks to WooHyun for reporting this. SVN revision: 71704
This commit is contained in:
parent
3d656b021e
commit
06bce244aa
|
@ -4991,7 +4991,9 @@ evas_object_textblock_text_markup_set(Evas_Object *obj, const char *text)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
evas_textblock_cursor_paragraph_first(o->cursor);
|
evas_textblock_cursor_paragraph_first(o->cursor);
|
||||||
|
evas_textblock_cursor_text_append(o->cursor, "");
|
||||||
|
|
||||||
evas_object_textblock_text_markup_prepend(o->cursor, text);
|
evas_object_textblock_text_markup_prepend(o->cursor, text);
|
||||||
/* Point all the cursors to the starrt */
|
/* Point all the cursors to the starrt */
|
||||||
|
@ -9288,6 +9290,8 @@ evas_object_textblock_init(Evas_Object *obj)
|
||||||
|
|
||||||
o = (Evas_Object_Textblock *)(obj->object_data);
|
o = (Evas_Object_Textblock *)(obj->object_data);
|
||||||
o->cursor->obj = obj;
|
o->cursor->obj = obj;
|
||||||
|
evas_object_textblock_text_markup_set(obj, "");
|
||||||
|
|
||||||
o->legacy_newline = EINA_TRUE;
|
o->legacy_newline = EINA_TRUE;
|
||||||
evas_object_event_callback_priority_add(obj, EVAS_CALLBACK_RESIZE, -1000,
|
evas_object_event_callback_priority_add(obj, EVAS_CALLBACK_RESIZE, -1000,
|
||||||
_workaround_object_coords_recalc, NULL);
|
_workaround_object_coords_recalc, NULL);
|
||||||
|
|
Loading…
Reference in New Issue