hermet pushed a commit to branch elementary-1.14.


commit 8e73bbf8ca0461915ad85eaadb54133eb9100b05
Author: Thiep Ha <thie...@gmail.com>
Date:   Tue May 19 21:13:55 2015 +0900

    entry: update selection handlers when entry is resized
    When entry is resized, selection handlers are not updated,
    it causes selection handlers to be placed in wrong position.
    This patch fixes it.
    Reviewers: woohyun, seoz, herdsman, Hermet
    Reviewed By: Hermet
    Differential Revision: https://phab.enlightenment.org/D2487
 src/lib/elm_entry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 9e2e743..d8eee9a 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -3649,7 +3649,8 @@ _elm_entry_evas_object_smart_resize(Eo *obj, 
Elm_Entry_Data *sd, Evas_Coord w, E
    eo_do_super(obj, MY_CLASS, evas_obj_smart_resize(w, h));
    evas_object_resize(sd->hit_rect, w, h);
+   if (sd->have_selection)
+     _update_selection_handler(obj);
 EOLIAN static void


Reply via email to