Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#55 Tooltips misaligned when chart in positioned div

cewolf-0.10
open
Brian Fox
TagLibrary (33)
9
2005-02-25
2004-10-29
Anonymous
No

If you generate a cewolf chart inside a <div> element
where the <div> element is positioned within the
document (e.g. using css) the tooltips do not appear
near the mouse.

The reason for this is as follows.
The tooltip div is generated by the ChartMapTag and
thus it appears where the chart tag lies in the markup.
As a result the tooltip div may be a child of any
surrounding (positioned) div.
However, the overlib library assumes the tooltip div is
a *direct* child of the <body> element.

For the original discussion see here:
http://groups.yahoo.com/group/overlibmws/message/254

I would suggest the solution is to migrate cewolf to
the overlibmws library which supports the
auto-generation of the tooltip div. This would involve
bundling 'overlibmws.js' rather than 'overlib.js' in
the Cewolf distribution and modifying the
implementation of ChartMapTag.java to avoid the
generation of the tooltip div by the tag.

I have included a diff to ChartMapTag with the above
change.

For more info on overlibmws see
http://www.macridesweb.com/oltest/

grantforrester2004@yahoo.co.uk

Discussion

  • Brian Fox
    Brian Fox
    2005-02-25

    • priority: 5 --> 9
    • assigned_to: nobody --> brianfox