forked from enlightenment/efl
tooltip: fix positioning when tooltip is affixed to a window object
@fix
This commit is contained in:
parent
024d76b560
commit
70c1758ed5
|
@ -415,6 +415,11 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
|
|||
TTDBG("SCREEN: cw=%d,ch=%d\n", cw, ch);
|
||||
|
||||
evas_object_geometry_get(tt->eventarea, &ox, &oy, &ow, &oh);
|
||||
/* win reports its screen position for x/y;
|
||||
* reset to 0 since we expect canvas coords here
|
||||
*/
|
||||
if (eo_isa(tt->eventarea, ELM_WIN_CLASS))
|
||||
ox = oy = 0;
|
||||
TTDBG("EVENTAREA: ox=%d,oy=%d,ow=%d,oh=%d\n", ox, oy, ow, oh);
|
||||
|
||||
if (tt->tt_win)
|
||||
|
|
Loading…
Reference in New Issue