tasn pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=80844cbcd72d5c3c00104b8bf8f9c5e590bad2bc
commit 80844cbcd72d5c3c00104b8bf8f9c5e590bad2bc Author: Tom Hacohen <[email protected]> Date: Mon Nov 25 16:20:50 2013 +0000 Entry: Fix update of child size and location. Before this commit, setting the text of an entry after the entry has already been placed and sized, would cause the inside entry (the one inside of the scroller) size to be the size of the viewport instead of the real size. This would make some parts of the entry unreachable. This fixes T169. --- src/bin/e_entry.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/e_entry.c b/src/bin/e_entry.c index 5291d09..832b6d1 100644 --- a/src/bin/e_entry.c +++ b/src/bin/e_entry.c @@ -45,6 +45,7 @@ static void _e_entry_cb_paste(void *data, E_Menu *m, E_Menu_Item *mi); static void _e_entry_cb_select_all(void *data, E_Menu *m, E_Menu_Item *mi); static void _e_entry_cb_delete(void *data, E_Menu *m, E_Menu_Item *mi); static void _e_entry_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info); +static void _entry_recalc_size(Evas_Object *object); /* local subsystem globals */ static Evas_Smart *_e_entry_smart = NULL; static int _e_entry_smart_use = 0; @@ -127,6 +128,9 @@ e_entry_text_set(Evas_Object *entry, const char *_text) sd->changing--; evas_object_smart_callback_call(entry, "changed", NULL); free(text); + + edje_object_size_min_calc(sd->entry_object, &sd->min_width, &sd->height); + _entry_recalc_size(entry); } /** --
