Closed Bug 144523 Opened 24 years ago Closed 17 years ago

k-hardware.de - javascript popup window with wrong position

Categories

(Tech Evangelism Graveyard :: German, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: etreise, Unassigned)

References

()

Details

(Whiteboard: [bug248549notfixed])

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051006 In the page on http://www.k-hardware.de/news.php?s=n0b0dy&news_id=739 there is a link to open a new window, when you hover over it with the mouse. It is in the second passage: "Cyborg 3D _USB_ Gold", where _USB_ is the link. When i scroll up, so this link is now in the bottom half of the browser, and show with mouse on it, the window appears with to low position. Reproducible: Always Steps to Reproduce: 1. scroll the page, so this link is on the bottom of it 2. show with the mouse on this link 3. Actual Results: window appears with a to low position Expected Results: window should appear higher, like it is, when link is in the upper half of browser window there are many other articles with those links
Browser, not engine ---> DOM Style. The key function is in view-source:http://www.k-hardware.de/hwlex.js.php function showhwlex(hwid, fest) { if(Netscape) { if(NetscapeVersion>=5) { flashOffset=0; etc. if((window.pageYOffset)<350) flashOffset = 350 - window.pageYOffset; fensterTop = window.pageYOffset + 10 + flashOffset; document.getElementById("HWFENSTER"+hwid).style.top = fensterTop; By contrast, the site's code for IE does this: diehoehe = document.body.scrollTop + 10; if(diehoehe<115) diehoehe=115; document.all("HWFENSTER"+hwid).style.top = diehoehe; fensterTop = diehohe; Now, both window.pageYOffset and document.body.scrollTop vary as the user scrolls down the page. The way they've coded this for Mozilla, window.pageYOffset cancels itself out until 350: window.pageYOffset fensterTop 0 360 100 360 200 360 300 360 350 360 360 370 400 410 whereas in IE things change when document.body.scrollTop = 105: document.body.scrollTop fensterTop 0 115 100 115 150 160 200 210 300 310 350 360 360 370 400 410 I believe it's all working just the way they've coded it...
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Style
QA Contact: pschwartau → ian
Yep. Evang in case we care about trying to get them to make the two branches the same....
Assignee: jst → nitot
Status: UNCONFIRMED → NEW
Component: DOM Style → Europe: West
Ever confirmed: true
OS: Windows XP → All
Product: Browser → Tech Evangelism
QA Contact: ian → brantgurganus2001
Hardware: PC → All
Version: other → unspecified
Summary: javascript popup window with wrong position → k-hardware.de - javascript popup window with wrong position
Whiteboard: [eurocontest]
I have also found this bug at http://www.bigpond.com/broadband/mybigpond/ Where when you select "MY Account Details" the popup comes up too far up the screen. Let me know if I have to pu tht evang hat back on (does it look like the flying nun's hat?) Indulis
move...
Assignee: nitot → german
Component: Europe: West → German
QA Contact: brantgurganus2001 → german
Similar problem with http://www.cimbali.com/en/ Click on "for the wide product choice" and then move the pointer over one of the machine categories. IE handles this well, but with Firebird the pop-up list goes to the top of the screen and is inaccessible.
[bug248549notfixed]
Whiteboard: [eurocontest] → [bug248549notfixed]
seems to be fixed
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.