If user move ctxpopup out of hover area,
size calculation works not good.
Move position in hover area forcibly.
Change-Id: I2117f66b0066cac607f4769bf53bef23c3724a89
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
evas_object_geometry_get(obj, &pos.x, &pos.y, NULL, NULL);
+ /* TIZEN_ONLY(20170524): move position in hover area */
+ if (pos.x < hover_area.x) pos.x = hover_area.x;
+ else if (pos.x > hover_area.x + hover_area.w) pos.x = hover_area.x + hover_area.w;
+
+ if (pos.y < hover_area.y) pos.y = hover_area.y;
+ else if (pos.y > hover_area.y + hover_area.h) pos.y = hover_area.y + hover_area.h;
+ /* END */
+
//recalc the edje
edje_object_size_min_calc
(wd->resize_obj, &base_size.x, &base_size.y);