Closed
Bug 176455
Opened 23 years ago
Closed 23 years ago
{Table width 100%} is disregarded if it's inside a {div overflow auto} on initial reflow
Categories
(Core :: Layout: Tables, defect, P2)
Tracking
()
RESOLVED
DUPLICATE
of bug 174665
People
(Reporter: gurra16, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
In this page, there's a table placed inside a div container. The width of the
table is set to "100%", but in reality it is rendered as "width: auto" so that
it only get as wide as its content requires. I expect it to be 100% of the page
body.
This only seems to happen while the div has the "overflow" porperty, which it
has in this case.
Interesting enough, you can notice that if you open the page in the Composer,
then the layout looks more as expected - the table actually becomes 100% wide.
Considering this, it looks as something is broken.
Another thing, change the table-width to e.g. 60% - and it will make the two
"Rows" much higher. I don't see a reason for this.
Comment 2•23 years ago
|
||
Seing this too on Windows 2000. Works fine in IE and Opera.
Netscape 7 doesn't even show the orange div.
resizing the window makes the table 100% wide.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: {Table width 100%} is disregarded if it's inside a {div overflow auto} → {Table width 100%} is disregarded if it's inside a {div overflow auto} on initial reflow
the following looks very suspicous:
tblO 02734990 r=2 a=8850,UC c=0,0 cnt=794
tbl 02734A90 r=2 a=8850,UC c=8820,UC cnt=795
tbl 02734A90 d=825,450
tblO 02734990 d=825,450
at
http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/nsTableFrame.cpp#1955
returns true
Comment 6•23 years ago
|
||
Confirming this bug on WINXP too. Changing OS to all.
Comment 7•23 years ago
|
||
I think this is a dupe of bug 174665. In that bug the width=100% of the table is
set inside the div itself. But in this bug width=100% is set inside the table
and this table is inside div. I think both these bugs are similar.
*** This bug has been marked as a duplicate of 174665 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•