bug 114706 - only use last height as desired size if a special reflow occurred during an incremental reflow. sr=kin

This commit is contained in:
karnaze%netscape.com 2002-06-19 22:42:41 +00:00
parent 5551899c79
commit 694c4c654a
2 changed files with 2 additions and 4 deletions

View File

@ -1097,8 +1097,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
SetHadSpecialReflow(PR_TRUE);
}
else if (HadSpecialReflow()) {
if ((eReflowReason_Incremental == aReflowState.reason) ||
(eReflowReason_Resize == aReflowState.reason)) {
if (eReflowReason_Incremental == aReflowState.reason) {
// with an unconstrained height, if the block height value hasn't changed,
// use the last height of the cell.
if ((NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) &&

View File

@ -1097,8 +1097,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
SetHadSpecialReflow(PR_TRUE);
}
else if (HadSpecialReflow()) {
if ((eReflowReason_Incremental == aReflowState.reason) ||
(eReflowReason_Resize == aReflowState.reason)) {
if (eReflowReason_Incremental == aReflowState.reason) {
// with an unconstrained height, if the block height value hasn't changed,
// use the last height of the cell.
if ((NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) &&