[Magnifier] Move down to fully show magnifier in case of not enough space
authorThiep Ha <thiep.ha@samsung.com>
Wed, 22 May 2013 01:40:26 +0000 (10:40 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:07:31 +0000 (14:07 +0900)
Change-Id: I1003dba5bc7315bd8aea16d5a8756e93efaaf54f

src/lib/elm_entry.c

index 4528ef4..26ec51e 100644 (file)
@@ -291,8 +291,9 @@ _magnifier_move(void *data)
    if (adjh < sd->mgf_height)
      adjh = sd->mgf_height;
 
+   /* move to fully show magnifier */
    if (cy + y - adjh < 0)
-     oy = ch;
+     oy = adjh - (cy + y);
 
    //adjusting scale and size
    adj_scale = sd->mgf_scale;