update the block overflow area if we shorten a cell in fixed layout, bug 266868 r/sr=roc

git-svn-id: svn://10.0.0.236/trunk@165348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bmlk%gmx.de 2004-11-14 14:47:59 +00:00
parent 4ff1453aa4
commit b232386286
2 changed files with 12 additions and 2 deletions

View File

@ -943,7 +943,12 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
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 we need to shorten the cell the previous non overflowing block
// will get some overflow area
if (kidSize.width > availSize.width) {
kidSize.width = availSize.width;
firstKid->FinishAndStoreOverflow(&kidSize);
}
}
//if (eReflowReason_Resize == aReflowState.reason) {
// NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");

View File

@ -943,7 +943,12 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
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 we need to shorten the cell the previous non overflowing block
// will get some overflow area
if (kidSize.width > availSize.width) {
kidSize.width = availSize.width;
firstKid->FinishAndStoreOverflow(&kidSize);
}
}
//if (eReflowReason_Resize == aReflowState.reason) {
// NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");