• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Cewolf tooltip position

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt,

Thanks for sharing the solution with us!
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to Javaranch Rey!
 
Rey Vincent Babilonia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And Welcome to Javaranch Flo!

Flo, can't I suggest that you start a new thread with your specific problem?
 
Flo Ryan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martijn,

I've started a new topic.

https://coderanch.com/t/503035/open-source/Cewolf-Tooltip-when-Struts-Tabbedpanel#2268445

Best regards Flo
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!