Closed
Bug 102145
Opened 24 years ago
Closed 23 years ago
cannot resize table after load
Categories
(Core :: Layout: Tables, defect, P3)
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: gt0197a, Assigned: karnaze)
Details
(Keywords: testcase, Whiteboard: [awd:tbl])
Attachments
(5 files)
I'm running build 2001091303.
A <table> and <div> can be resized as the document is loading. After the
document is loaded, the <table> cannot be resized. I checked the table's
style.width and style.height properties and they take on the new values, but
the table doesn't actually resize...it just thinks it has. There are no
problems with resizing a <div> with identical JavaScript.
Example code:
<html>
<head>
<title>Test Page</title>
<script language="JavaScript">
function setElementSize (elementId) {
myElement = document.getElementById(elementId);
alert(elementId + ' was ' +
myElement.style.height + ' by ' + myElement.style.width);
myElement.style.height = window.innerHeight;
myElement.style.width = window.innerWidth;
alert(elementId + ' is ' +
myElement.style.height + ' by ' + myElement.style.width);
}
</script>
</head>
<body>
<table id="mytable" width="100%"><tr><td style="background-
color:#cccccc">
Content
</td></tr></table>
<div id="mydiv" style="background-color:#aaaaaa;">
Content
</div>
<script language="JavaScript">
setElementSize("mytable");
setElementSize("mydiv");
window.onresize = function () {
setElementSize("mytable");
setElementSize("mydiv");
}
</script>
</body>
</html>
Comment 1•24 years ago
|
||
Bernd can you please look at this?
Ok, for me I see small oneline highth tables, then they resize to be fullscreen
size each. From the code, that seems to be what they are supposed to do, are you
seeing something different? If so, try new build I'm using 2001092403
problem reflow
Tbl 027EBBFC r=0 a=8940,UC c=0,0 cnt=0
Tbl 027EC6E4 r=0 a=8940,UC c=8940,UC cnt=1
RowG 027EC8A4 r=0 a=UC,UC c=UC,UC cnt=2
Row 027ECA24 r=0 a=UC,UC c=UC,UC cnt=3
Cell 027ECC24 r=0 a=UC,UC c=UC,UC cnt=4
Block 027ECC80 r=0 a=UC,UC c=UC,UC cnt=5
Block 027ECC80 d=2460,285 me=585
Cell 027ECC24 d=2490,315 me=615
Row 027ECA24 d=UC,315
RowG 027EC8A4 d=UC,315
Initialized min=675 des=2550 pref=2550
Balanced min=675 des=8940 pref=2550 cols=8880
RowG 027EC8A4 r=2 a=8940,UC c=8940,UC cnt=6
Row 027ECA24 r=2 a=8940,UC c=8940,UC cnt=7
Cell 027ECC24 r=2 a=8880,UC c=8850,UC cnt=8
Block 027ECC80 r=2 a=8850,UC c=8850,UC cnt=9
Block 027ECC80 d=8850,285
Cell 027ECC24 d=8880,315
Row 027ECA24 d=8940,315
RowG 027EC8A4 d=8940,315
Tbl 027EC6E4 d=8940,375
Tbl 027EBBFC d=8940,375
Tbl 027EBBFC r=1 a=8940,UC c=0,0 cnt=10
Tbl 027EC6E4 r=1 a=8940,UC c=8940,3000 cnt=11
Initialized min=675 des=2550 pref=2550
Balanced min=675 des=8940 pref=2550 cols=8880
RowG 027EC8A4 r=2 a=8940,UC c=8940,UC cnt=12
Row 027ECA24 r=2 a=8940,UC c=8940,UC cnt=13
Cell 027ECC24 r=2 a=8880,UC c=8850,UC cnt=14
Block 027ECC80 r=2 a=8850,UC c=8850,UC cnt=15
Block 027ECC80 d=8850,285
Cell 027ECC24 d=8880,315
Row 027ECA24 d=8940,315
RowG 027EC8A4 d=8940,315
Tbl 027EC6E4 d=8940,3000
Tbl 027EBBFC d=8940,3000
reference reflow
Disabling Quirk StyleSheet
Enabling Quirk StyleSheet
Tbl 00BBC71C r=0 a=8940,UC c=0,0 cnt=16
Tbl 027BF904 r=0 a=8940,UC c=8940,UC cnt=17
RowG 027BFAC4 r=0 a=UC,UC c=UC,UC cnt=18
Row 027BFC44 r=0 a=UC,UC c=UC,UC cnt=19
Cell 027BFE44 r=0 a=UC,UC c=UC,UC cnt=20
Block 027BFEA0 r=0 a=UC,UC c=UC,UC cnt=21
Block 027BFEA0 d=2460,285 me=585
Cell 027BFE44 d=2490,315 me=615
Row 027BFC44 d=UC,315
RowG 027BFAC4 d=UC,315
Initialized min=675 des=2550 pref=2550
Balanced min=675 des=8940 pref=2550 cols=8880
RowG 027BFAC4 r=2 a=8940,UC c=8940,UC cnt=22
Row 027BFC44 r=2 a=8940,UC c=8940,UC cnt=23
Cell 027BFE44 r=2 a=8880,UC c=8850,UC cnt=24
Block 027BFEA0 r=2 a=8850,UC c=8850,UC cnt=25
Block 027BFEA0 d=8850,285
Cell 027BFE44 d=8880,315
Row 027BFC44 d=8940,315
RowG 027BFAC4 d=8940,315
Tbl 027BF904 d=8940,375
Tbl 00BBC71C d=8940,375
Tbl 00BBC71C r=1 a=8940,UC c=0,0 cnt=26
Tbl 027BF904 r=1 a=8940,UC c=3000,3000 cnt=27
Initialized min=3000 des=3000 pref=3000
Balanced min=3000 des=3000 pref=3000 cols=2940
RowG 027BFAC4 r=2 a=3000,UC c=3000,UC cnt=28
Row 027BFC44 r=2 a=3000,UC c=3000,UC cnt=29
Cell 027BFE44 r=2 a=2940,UC c=2910,UC cnt=30
Block 027BFEA0 r=2 a=2910,UC c=2910,UC cnt=31
Block 027BFEA0 d=2910,285
Cell 027BFE44 d=2940,315
Row 027BFC44 d=3000,315
RowG 027BFAC4 d=3000,315
Tbl 027BF904 d=3000,3000
Tbl 00BBC71C d=3000,3000
The critical line in the problem case is
Tbl 027EC6E4 r=1 a=8940,UC c=8940,3000 cnt=11
compared to
Tbl 027BF904 r=1 a=8940,UC c=3000,3000 cnt=27
it looks like the table does not recognize the styled width.
Updated•24 years ago
|
Assignee: jst → karnaze
Status: UNCONFIRMED → NEW
Component: DOM Other → HTMLTables
Ever confirmed: true
QA Contact: gerardok → amar
Comment 8•24 years ago
|
||
Reassigning to HTML tables.
Assignee | ||
Comment 9•24 years ago
|
||
Temporarily moving to future until a milestone can be assigned.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Comment 10•24 years ago
|
||
cc'ing hyatt on this to see if he has any ideas on what the problem could be
here.
Whiteboard: [awd:tbl]
Comment 11•24 years ago
|
||
ok, i got a new testcase for this using setAttribue and it works. I really
think this is a DOM Style problem, so I'm sending it over to them.
Component: HTMLTables → DOM Style
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
reassigning to core owner
Assignee: karnaze → jst
Status: ASSIGNED → NEW
QA Contact: amar → ian
Comment 14•24 years ago
|
||
Nope, not a DOM problem, the table code doesn't respond correctly to a style
change (unless I missed something obvious here), where as it does respond to a
changed attribute. Back to HTML tables.
Assignee: jst → karnaze
Component: DOM Style → HTMLTables
QA Contact: ian → amar
Comment 15•24 years ago
|
||
see http://bugzilla.mozilla.org/show_bug.cgi?id=103533#c5 , this is either a
dupe or at least dependent. Or in other words, any really good bug belongs to
hyatt. :-)
Assignee | ||
Comment 16•23 years ago
|
||
Fixed with bug 92868.
Status: NEW → RESOLVED
Closed: 23 years ago
Priority: -- → P3
Resolution: --- → FIXED
Target Milestone: Future → mozilla1.0
You need to log in
before you can comment on or make changes to this bug.
Description
•