bug 56201 - don't allow a cell to return a desired width bigger than the avail width in a fixed layout table. sr=buster, r=peterl.

This commit is contained in:
karnaze%netscape.com 2001-01-25 22:57:53 +00:00
parent a79e1f9316
commit 047535aae4
2 changed files with 8 additions and 2 deletions

View File

@ -885,7 +885,10 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
// end 0 dimensioned cells
kidSize.width = PR_MAX(kidSize.width, smallestMinWidth);
if (!tableFrame->IsAutoLayout()) {
// a cell in a fixed layout table is constrained to the avail width
kidSize.width = PR_MIN(kidSize.width, availSize.width);
}
//if (eReflowReason_Resize == aReflowState.reason) {
// NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");
//}

View File

@ -885,7 +885,10 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
// end 0 dimensioned cells
kidSize.width = PR_MAX(kidSize.width, smallestMinWidth);
if (!tableFrame->IsAutoLayout()) {
// a cell in a fixed layout table is constrained to the avail width
kidSize.width = PR_MIN(kidSize.width, availSize.width);
}
//if (eReflowReason_Resize == aReflowState.reason) {
// NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");
//}