summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-05-28 21:34:25 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-05-28 21:34:49 -0400
commitb6bf8fdd466fd7c869fab4e8fc9969b6a444a3c3 (patch)
treeb943e429622d6f85f98bc3dff564744d8d0c1c7b
parentb758ec329c9f03f0a8f85092b659917351f66029 (diff)
tooltip: fix positioning when tooltip is affixed to a window object
@fix
-rw-r--r--src/lib/els_tooltip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index fecdb8bc3..939366a9b 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -415,6 +415,11 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
415 TTDBG("SCREEN: cw=%d,ch=%d\n", cw, ch); 415 TTDBG("SCREEN: cw=%d,ch=%d\n", cw, ch);
416 416
417 evas_object_geometry_get(tt->eventarea, &ox, &oy, &ow, &oh); 417 evas_object_geometry_get(tt->eventarea, &ox, &oy, &ow, &oh);
418 /* win reports its screen position for x/y;
419 * reset to 0 since we expect canvas coords here
420 */
421 if (eo_isa(tt->eventarea, ELM_WIN_CLASS))
422 ox = oy = 0;
418 TTDBG("EVENTAREA: ox=%d,oy=%d,ow=%d,oh=%d\n", ox, oy, ow, oh); 423 TTDBG("EVENTAREA: ox=%d,oy=%d,ow=%d,oh=%d\n", ox, oy, ow, oh);
419 424
420 if (tt->tt_win) 425 if (tt->tt_win)