User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5a) Gecko/20030609 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5a) Gecko/20030609 When you set up a div with overflow:scroll, and put content in it, the scrollbars are always enabled and always show that there is area to the right or below that you can scroll to, even if the content is actually smaller than the div's defined box. Moving the scrollbars in this case doesn't actually scroll anything. The miscalculation in the size of the thumb for the scrollbar appears to be equivalent to the width of the vertical scrollbar or the height of the horizontal one. Reproducible: Always Steps to Reproduce: 1.create a web page with <div style="overflow:scroll;"> 2.put content inside the <div> that doesn't fill it horizontally 3. Actual Results: Horizontal scrollbar is enabled, and shows that I can scroll to the right. Attempting to scroll to the right moves the scrollbar's thumb, but doesn't move the content area (there's nothing to move). Expected Results: When the content area of the div is not as wide as the div's box, the horizontal scrollbar should have no thumb and be disabled. This works correctly in IE. (The same should hold true for the vertical scrollbar) testcase coming momentarily
This is per the CSS spec. Overflow scroll always generates scrollbars regardless of the content. Reference http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
Your reasoning has nothing to do with this bug report. If you read my description, I'm not asking for the scrollbar to be removed. I'm asking for it to be drawn properly. If there is nowhere to scroll to, Mac OS X HIG says there's not supposed to be a thumb and the scrollbar should be disabled. The scrollbar itself should still be there (per the CSS spec). Right now it's getting drawn as if there is somewhere to scroll to, when there isn't.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
fwiw, I believe Mac OS X automatically hides the thumb is you set the thumb size percentage to 100%, so fixing the content size calculation will probably fix this.
*** This bug has been marked as a duplicate of 76197 ***
Status: REOPENED → RESOLVED
Last Resolved: 15 years ago → 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.