mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
a79e1f9316
commit
047535aae4
@ -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");
|
||||
//}
|
||||
|
@ -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");
|
||||
//}
|
||||
|
Loading…
Reference in New Issue
Block a user