Closed Bug 151465 Opened 24 years ago Closed 21 years ago

iiyama.nl - Scroll bar doesn't scroll

Categories

(Tech Evangelism Graveyard :: Dutch, defect, P3)

x86
Windows XP
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwolhuter, Unassigned)

References

()

Details

(Whiteboard: [havefix][havecontact][bug248549notfixed])

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1a) Gecko/20020611 BuildID: 2002061104 I have seen this kind of error on more pages. I think it is javascript related. The scroll bar moves, but the corresponding data doesn't scroll. Reproducible: Always Steps to Reproduce: 1.just scroll 2. 3. Actual Results: nothing Expected Results: scrolled
Confirming bug using Mozilla trunk binary 2002061208 WinNT. The JS source for this DHTML scrollbar is from view-source:http://www.iiyama.nl/1024x768/scroll/scrollbar.js The problem lies in this function, on the indicated line: initScroller() { if(ns6) pageFromTop = parseInt(tempLyr.style.top); Note |tempLyr| is a <div> element in the middle frame at the site: http://www.iiyama.nl/1024x768/php/quickselect-crt.php?search=1 <div ID="main" class="main"> Indeed, in the Mozilla JS Debugger, we find: tempLyr [HTMLDivElement] [class: HTMLDivElement] {0} tempLyr.style [CSSStyleDeclaration] [class: CSSStyleDeclaration] {0} tempLyr.style.top [string] "" Now, since |tempLyr.style.top| is the empty string, the line we indicated above sets |pageFromTop| to parseInt("") = NaN: pageFromTop [double] NaN This causes all subsequent arithmetic using |pageFromTop| to fail, hence the scrollbar fails. You can see this directly by loading the site in Mozilla; then before trying to scroll the middle frame, copy this javascript:URL and hit enter javascript: void(window.frames[1].pageFromTop = 0); This gives |pageFromTop| the value it has in IE on initial load. Now try scrolling the middle frame in Mozilla: it works!
Assignee: rogerl → khanson
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reassigning to DOM Level 0 for further analysis: 1. Is this just a coding error in the DHTML scrollbar? 2. Or should we be providing the numerical value 0 for |style.top| of the <div> element, instead of the empty string as we do?
Assignee: khanson → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
This is an error. The "style" property should give a view onto the "style" attribute of the object. Since the "style" attribute does not set "top" (indeed, it sets nothing), .style.top should be the empty string. What the author wants here is not .style.top but the computed value of "top" (which would take into account the stylesheet given by the <style> element.
Assignee: jst → nitot
Component: DOM Level 0 → Europe: West
Product: Browser → Tech Evangelism
QA Contact: desale → brantgurganus2001
Version: other → unspecified
> What the author wants here is not .style.top but the computed value of "top" > (which would take into account the stylesheet given by the <style> element. Boris: since I don't know CSS very well, let me ask, How is that done? How does the author access the computed value of "top"? Thanks -
document.defaultView.getComputedStyle(tempLyr, "").getPropertyValue("top") a little verbose, I know.... At some point, we will support |.top| instead of |.getPropertyValue("top")|...
they need to use getComputedStyle to get the "real" top.
Summary: Scroll bar doesn't scroll → iiyama.nl : Scroll bar doesn't scroll
Whiteboard: [havefix]
Whiteboard: [havefix] → [havefix][havecontact]
I think they've updated the page, now WFM at Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910
does work with mozilla 1.2a/win2k DOESNT work with mozilla 1.0/linux . anyone can do some more testing ?
*** Bug 115898 has been marked as a duplicate of this bug. ***
Using Moz 2003050622 on Mandrake 9.1 the problem is still there.
Summary: iiyama.nl : Scroll bar doesn't scroll → iiyama.nl - Scroll bar doesn't scroll
move...
Assignee: nitot → dutch
Component: Europe: West → Dutch
QA Contact: brantgurganus2001 → dutch
June 2003 : prioritizing Dutch Tech evangs
Priority: -- → P3
I see no scrollbar on that page now, but using the mousewheel does scroll (WinXP, 1.7a)
(In reply to comment #14) > I see no scrollbar on that page now, but using the mousewheel does scroll > (WinXP, 1.7a) They use their own customized "scrollbar": the arrow on the right for UP and the two circular thingies for the current relative location.
Ugh: this "scrollbar" is only displayed when the screen has a certain size; I had to maximize Moz to see it. And it mostly works on XP (dragging the slider quick and far does not), but this is no news since comment #8 and #9.
[bug248549notfixed]
Whiteboard: [havefix][havecontact] → [havefix][havecontact][bug248549notfixed]
The site's been updated. Page no longer exist and the new iiyama pages seem to work fine for me.
Status: NEW → RESOLVED
Closed: 21 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.

Attachment

General

Creator:
Created:
Updated:
Size: