6.0.0-RC7
6/27/26

[#5220] Tooltips displayed in wrong place if window scrolls in Firefox
Summary Tooltips displayed in wrong place if window scrolls in Firefox
Queue Horde Base
Queue Version HEAD
Type Bug
State Duplicate
Priority 1. Low
Owners
Requester michael.sheldon (at) credativ (dot) de
Created 4/5/07 (7023 days ago)
Due
Updated 4/8/07 (7020 days ago)
Assigned 4/5/07 (7023 days ago)
Resolved 4/8/07 (7020 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
173 Chuck Hagenbuch Comment #6
State ⇒ Duplicate
Reply to this comment
Duplicate of bug 3958.
393 Chuck Hagenbuch Deleted Original Message
 
153 Chuck Hagenbuch Deleted Original Message
 
29 Michael Slusarz Comment #5 Reply to this comment
This won't work cross-browser (pageXOffset is mozilla specific).
So is the innerWidth property, so the problem only occurs in browser
which support it.
Ah yes, I see now.



It looks like you are trying to fix exactly what I was trying to fix here:

http://lists.horde.org/archives/cvs/Week-of-Mon-20070312/065976.html



(I reverted the change because i committed accidentally and it wasn't 
working 100% yet).  Maybe you can take a look at that code, and the 
code in 
http://cvs.horde.org/co.php?r=1.18&f=dimp%2Fjs%2Fsrc%2FContextSensitive.js 
which does exactly what you are asking for here (cross-browser 
positioning within the current viewport), and provide a cross-browser 
patch.
219 michael (dot) sheldon (at) credativ (dot) de Comment #4 Reply to this comment
This won't work cross-browser (pageXOffset is mozilla specific).
So is the innerWidth property, so the problem only occurs in browser 
which support it.



However another patch should probably be written to add similar 
functionality for Internet Explorer using document.body.offsetWidth 
for checking the tooltip stays within the current viewport.
518 Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
This won't work cross-browser (pageXOffset is mozilla specific).
2912 michael (dot) sheldon (at) credativ (dot) de Comment #2
New Attachment: tooltip-firefox.png
Reply to this comment
Attached is a screenshot to help illustrate this.


5512 michael (dot) sheldon (at) credativ (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Tooltips displayed in wrong place if window scrolls in Firefox
Queue ⇒ Horde Base
New Attachment: firefox-tooltips.patch
State ⇒ Unconfirmed
Reply to this comment
The current tooltip javascript doesn't take account of the page offset 
from scrolling, so if a window has been scrolled to the right any 
tooltips beyond the original edge of the browser viewport will appear 
in the wrong place.



The attached patch corrects this, I've tested it in Firefox, Konqueror 
and Internet Explorer (the problem never occured in Internet Explorer, 
due to IE not supporting window.innerWidth, which is used for checking 
if a tooltip is outside the browser viewport).

Saved Queries