editor - calc entry forcely after textblock change

This commit is contained in:
ChunEon Park 2014-06-01 15:49:40 +09:00
parent 0cf6bf5b51
commit ed89dd1d97
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,7 @@ syntax_color_apply(edit_data *ed)
But it can avoid entry_object_text_escaped_set() in Edje.
Logically that's unnecessary in this case. */
evas_object_textblock_text_markup_set(tb, translated);
elm_entry_calc_force(ed->en_edit);
//recorver cursor position??
elm_entry_cursor_pos_set(ed->en_edit, 0);
@ -190,6 +191,8 @@ syntax_color_thread_end_cb(void *data, Ecore_Thread *thread EINA_UNUSED)
Logically that's unnecessary in this case. */
evas_object_textblock_text_markup_set(tb, td->translated);
elm_entry_calc_force(td->ed->en_edit);
//recorver cursor position??
elm_entry_cursor_pos_set(td->ed->en_edit, 0);
elm_entry_cursor_pos_set(td->ed->en_edit, pos);