bug 56201 - allow cell to return larger desired size than avail during incremental reflow. sr=buster, r=peterl

This commit is contained in:
karnaze%netscape.com 2001-01-11 22:51:35 +00:00
parent 39adeae2e9
commit 17cb2cee95
2 changed files with 6 additions and 6 deletions

View File

@ -876,10 +876,10 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
kidSize.width = PR_MAX(kidSize.width, smallestMinWidth);
if (eReflowReason_Resize == aReflowState.reason) {
NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");
}
// Place the child
//////////////////////////////// HACK //////////////////////////////
kidSize.width = PR_MIN(kidSize.width, availSize.width);
///////////////////////////// END HACK /////////////////////////////
FinishReflowChild(firstKid, aPresContext, kidSize,
kidOrigin.x, kidOrigin.y, 0);

View File

@ -876,10 +876,10 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
kidSize.width = PR_MAX(kidSize.width, smallestMinWidth);
if (eReflowReason_Resize == aReflowState.reason) {
NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");
}
// Place the child
//////////////////////////////// HACK //////////////////////////////
kidSize.width = PR_MIN(kidSize.width, availSize.width);
///////////////////////////// END HACK /////////////////////////////
FinishReflowChild(firstKid, aPresContext, kidSize,
kidOrigin.x, kidOrigin.y, 0);