copypaste: Do not update cnp popup position if not visible. 94/109894/1
authorSubodhKumar <s7158.kumar@samsung.com>
Thu, 12 Jan 2017 07:01:13 +0000 (12:31 +0530)
committerSubodhKumar <s7158.kumar@samsung.com>
Thu, 12 Jan 2017 07:01:13 +0000 (12:31 +0530)
 Issue: Scrolling performance degraded when cnp popup is showing and scroll happens.

Change-Id: I6aaab6dc95bc7f89553ddbb3e062bd53603b99ba

src/modules/copypasteUI_ctxpopup/copypaste.c

index 18c392f4da987866db8b66d3eebf476b40e74f4d..3e86ada9d90fcdddb223ef01bafc06d6957ebc6e 100644 (file)
@@ -1781,7 +1781,7 @@ EAPI void
 obj_update_popup_pos(Evas_Object *obj)
 {
    if (!obj || !ext_mod || !ext_mod->popup || !ext_mod->popup_showing ||
-       (obj != ext_mod->caller))
+       !evas_object_visible_get(ext_mod->popup) || (obj != ext_mod->caller))
      return;
 
    elm_entry_extension_module_data_get(obj, ext_mod);