This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Well the scrollbar is appearing since the content is becoming larger than the available space on the screen. Are you using absolute positioning for the div?
Joined: Jul 31, 2001
Thanks for your reply.
Yes, I am using absolute positioning. I do understand why the scrollbar is being added; I just would like to know if there is any way to avoid it, i.e. for example, forcing the browser re-calc, re-flow, etc. the page to avoid the scrollbar being displayed.
I know the scrollbar is not absolutely necessary because if I insert the following code:
directly after the <body> tag in my page, the scrollbar does NOT appear regardless of whether the tooltip is showing or hidden. The init() function performs appendChild to add the required <div> element.