In the test case given above, I have a fixed-positioned menu with "overflow:auto". When the vertical scrollbar appears, it robs some of the width required by the menu. This makes the space for the menu too narrow and forces a horizontal scrollbar to appear also. This can be reproduced by re-sizing the browser window on the above url. I got this both with Mozilla 0.8.1 and with the latest build: 2001060804.
I always see the scrollbars on linux, build 2001060809, even if I enlarge the browser window to full screen size. Netscape 4.77 has a very funky rendering of the page. The URL is wrong. You probably meant http://www.alexanderworks.org/menu%20tests/fixed_autoscroll.html
Thanks, Diego, for pointing out the mistake: I left the original http:// in when I pasted the url. It sounds like the additional problem with Linux is another, separate bug? (That's assuming you're not using a large font so that the menu still overflows even with a maximised window).
Qa contact too.
So what's the bug here? Is it that the scrollbar makes the content area of the menu smaller? The CSS spec does not say where the scrollbar should be placed. Placing it outside the positioned element's content area would make just as little sense... That said, you should size the box larger. On linux it's always a little too narrow for the contained text, not matter what font size I use -- it scales with the font.
Boris, the box is sized with "width:auto" so as to be exactly the size it needs to be for the text it contains (regardless of font-size). The scrollbar breaks that by automatically making the box just that little bit too narrow. Are you saying that, with Linux, the box is too narrow *even without the scrollbar*? If so, that is yet another bug.
The bug would be that on Linux the div always seems to think that it can scroll up and down. so it always gets a vertical scrollbar and thus always a horizontal one. But the original bug seems valid... we should be a little more clever about sizing width:auto things, it seems. Giving this a clearer summary.
Reassigned to evaughan like other bugs with overflow:auto in absolutely positioned elements (bug 34031 and bug 44298).
Bug is still there with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030418.
WFM, 2004-08-24-05 trunk Linux. Philip, do you see any remaining problem?
That looks very good, Mats. Thanks.