entry: update selection handlers when entry is resized
authorThiep Ha <thiepha@gmail.com>
Tue, 19 May 2015 12:13:55 +0000 (21:13 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Tue, 19 May 2015 12:13:55 +0000 (21:13 +0900)
Summary:
When entry is resized, selection handlers are not updated,
it causes selection handlers to be placed in wrong position.
This patch fixes it.

@fix

Reviewers: woohyun, seoz, herdsman, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2487

src/lib/elm_entry.c

index c39b212..23ce545 100644 (file)
@@ -3647,7 +3647,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