Bug 295815. When computing the available height constraint for a float, don't look at the available height of the float band, just look at the available height for the block's contentarea. r+sr=dbaron

This commit is contained in:
roc+%cs.cmu.edu 2005-09-30 21:54:12 +00:00
Родитель ec3d25fa14
Коммит 83afe8ff64
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -5840,8 +5840,7 @@ nsBlockFrame::ReflowFloat(nsBlockReflowState& aState,
availWidth -= availWidth % twp;
}
}
nscoord availHeight = ((NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height) ||
(NS_UNCONSTRAINEDSIZE == aState.mContentArea.height))
nscoord availHeight = NS_UNCONSTRAINEDSIZE == aState.mContentArea.height
? NS_UNCONSTRAINEDSIZE
: PR_MAX(0, aState.mContentArea.height - aState.mY);