Fixed bug #2052 - don't adjust the height when its computed

This commit is contained in:
kipp%netscape.com 1999-03-08 19:22:16 +00:00
Родитель 89752f76c3
Коммит bffbdd37e2
2 изменённых файлов: 10 добавлений и 4 удалений

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

@ -513,8 +513,11 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
// may have 'auto' for an offset
ReflowAbsoluteFrames(aPresContext, reflowState);
// Compute our desired size taking into account any floaters
if (nsnull != mSpaceManager) {
// Compute our desired size taking into account any floaters. Note
// that if this frame has a height specified by CSS then we don't do
// this!
if ((nsnull != mSpaceManager) &&
(NS_UNCONSTRAINEDSIZE == reflowState.computedHeight)) {
nscoord floaterYMost;
mSpaceManager->YMost(floaterYMost);
if (floaterYMost > 0) {

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

@ -513,8 +513,11 @@ nsAreaFrame::Reflow(nsIPresContext& aPresContext,
// may have 'auto' for an offset
ReflowAbsoluteFrames(aPresContext, reflowState);
// Compute our desired size taking into account any floaters
if (nsnull != mSpaceManager) {
// Compute our desired size taking into account any floaters. Note
// that if this frame has a height specified by CSS then we don't do
// this!
if ((nsnull != mSpaceManager) &&
(NS_UNCONSTRAINEDSIZE == reflowState.computedHeight)) {
nscoord floaterYMost;
mSpaceManager->YMost(floaterYMost);
if (floaterYMost > 0) {