Closed
Bug 253655
Opened 21 years ago
Closed 20 years ago
overflow: auto + height/width: auto shows veritical scrollbars on content resize
Categories
(Core :: Web Painting, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: martin.thomson, Assigned: roc)
References
Details
Attachments
(1 file)
856 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Powersquid/0.9.2 (Firefox/0.9.2 polymorph)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Powersquid/0.9.2 (Firefox/0.9.2 polymorph)
I have an image within a block that has "overflow: auto", "height: auto" and a
fixed width. The image fits within the width allowed (that is, there is no
horizontal scrollbar).
If I then enlarge the image, the block is only enlarged vertically when the
width of the image remains less than the allowed width.
To put it another way, the contents of an "overflow: auto" box cannot increase
in such a way as to simultaneously add both vertical and horizontal scrollbars.
Reproducible: Always
Steps to Reproduce:
1. Box with width: 100px, overflow: auto, containing an image 80x80 pixels
2. double the size of the image
Actual Results:
The box remains 80 pixels (approx) tall and it gains both horizontal and
vertical scrollbars.
Expected Results:
The box should resize to the same dimensions as it would at the time of initial
page layout. (height: 160px) Only horizontal scrollbars should appear.
The width doesn't have to be set explicitly, the width of the browser window is
a sufficient constraint.
Resizing the browser window reflows the page, which solves the problem.
I assume that resizing other sorts of fixed size content would have the same
effect (<pre> tags etc).
Reporter | ||
Comment 1•21 years ago
|
||
I see this on LInux 2004101705
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Comment 4•20 years ago
|
||
Testcase fails for me in Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.8b2) Gecko/20050422 Firefox/1.0+
Testcase WFM Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2)
Gecko/20050428 Firefox/1.0+
Resolved Fixed by bug 240276?
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•