Last Comment Bug 151698 - onmouseover tooltips float underneath scrollbar
: onmouseover tooltips float underneath scrollbar
Product: Core
Classification: Components
Component: Layout (show other bugs)
: Trunk
: x86 Windows 2000
P4 normal (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
: Jet Villegas (:jet)
Depends on:
  Show dependency treegraph
Reported: 2002-06-13 19:09 PDT by David Smith
Modified: 2015-07-28 03:17 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image David Smith 2002-06-13 19:09:29 PDT
The sidebar on the right side of the page (Early Reviews, etc.) is set up with
onmouseovers that bring up a tooltip that displays the entire name of the title.
 However, when the tooltip comes up and the mouse is far enough to the right,
the tooltip is drawn underneath the vertical scrollbar.  This pushes the
apparant width of the page out, and a horizontal scrollbar appears.  If you move
the mouse to the right (including after moving the scrollbar over) the
horizontal scrollbar will get bigger.  If you move it to the left while keeping
the tooltip up, it will make the horizontal scrollbar shrink and eventually
disappear.  If you move in such a way that the tooltip disappears, the scrollbar
remains as you last left it.

The tooltip will not display any further to the right than the inside edge of
the scrollbar.  The area the scrollbar covers should not be considered an active
part of the page.
Comment 1 User image David Smith 2002-06-13 19:19:50 PDT
Meant to include -  this is what the code fragment looks like:

<a onmouseover="return overlib('Armitage III: Dual Matrix (Special Edition)');"
onmouseout="return nd();" href="/reviews/viewreview.php?review=919">Armitage
III: Du...</a>

Comment 2 User image Matthias Versen [:Matti] 2002-06-14 10:25:24 PDT
-> Layout
Comment 3 User image Chris Petersen 2002-07-23 16:34:32 PDT
Confirming in the OS X (2002-07-23-05) and Windows Me (2002-07-22-08) builds.
Comment 4 User image Martijn Wargers [:mwargers] 2004-09-16 15:06:58 PDT
I haven't completely analysed the script, but isn't this more an evangelism issue?
This is the script that makes the floating tooltips:
In function placeLayer() I found this (at line nr 926):
if (ie4) iwidth = o3_frame.document.body.clientWidth;
if (ns4) iwidth = o3_frame.innerWidth; // was screwed in mozilla, fixed now?
if (ns6) iwidth = o3_frame.outerWidth;

So IE gets document.body.clientWidth which is the width of the page minus the
scrollbars. And Mozilla gets window.outerWidth, which is the width of the page
(with the width of the scrollbars).
I think that is the cause of the bug.
Comment 5 User image Hallvord R. M. Steen [:hallvors] 2015-07-28 03:17:26 PDT
Site gone, lacks enough details

Note You need to log in before you can comment on or make changes to this bug.