| Author |
Cewolf tooltip position
|
Matt McCray
Greenhorn
Joined: May 20, 2009
Posts: 10
|
|
I am working on some jFreeCharts using Cewolf. My problem is the position of the tooltips. When a tooltip is displayed it is nowhere near the pointer. If the page is scrolled the tooltip will scroll with the page regardless of where the pointer is. It seems that my tooltip is positioning relative to the page, not the chart. I can’t seem to find any posts with the same problem.
This problem occurs while using FireFox, so it has to do with overLib.js
|
 |
Matt McCray
Greenhorn
Joined: May 20, 2009
Posts: 10
|
|
|
I’ve done some research and found that overLib uses nested tables to display tooltips. My problem has to do with global styles applied to table, td and th. Now I just have to figure out how to counteract these styles without changing the existing style sheets. This is an existing web site that is pretty large.
|
 |
Matt McCray
Greenhorn
Joined: May 20, 2009
Posts: 10
|
|
|
Well I found the solution to my problem. It was being caused by the a few elements position set to absolute. The solution was to add a new variable and changing the code that builds, in overLib.js, the tables slightly. When using inline styling I can now change the table positioning to fixed. This way it remains relative to the browser window.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
Hi Matt,
Thanks for sharing the solution with us!
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
Rey Vincent Babilonia
Greenhorn
Joined: Jun 16, 2010
Posts: 2
|
|
Matt McCray wrote:Well I found the solution to my problem. It was being caused by the a few elements position set to absolute. The solution was to add a new variable and changing the code that builds, in overLib.js, the tables slightly. When using inline styling I can now change the table positioning to fixed. This way it remains relative to the browser window.
Hi Matt,
Can you post the code snippets for this? Thank you very much.
Regards,
Rey
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
And welcome to Javaranch Rey!
|
 |
Rey Vincent Babilonia
Greenhorn
Joined: Jun 16, 2010
Posts: 2
|
|
Thanks for the warm welcome, Martijn.
I can't understand the part of adding a new variable.
The inline styling would probably mean:
Which one refers to the table part? I saw 3 tables with CSSSTYLE. What will be modified?
Thanks.
Cheers,
Rey
|
 |
Flo Ryan
Greenhorn
Joined: Jul 15, 2010
Posts: 6
|
|
Hi All...
I'm struggling with the same problem as Matt McCray but I did not get the solution so far
Can anybody provide me some more details regarding the solution please?
I'm not so familiar with the overlib.js.
Many thanks in advance.
Kind regards Flo
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
And Welcome to Javaranch Flo!
Flo, can't I suggest that you start a new thread with your specific problem?
|
 |
Flo Ryan
Greenhorn
Joined: Jul 15, 2010
Posts: 6
|
|
Hi Martijn,
I've started a new topic.
http://www.coderanch.com/t/503035/open-source/Cewolf-Tooltip-when-Struts-Tabbedpanel#2268445
Best regards Flo
|
 |
 |
|
|
subject: Cewolf tooltip position
|
|
|