Tweaked the isFloated variable computation to only support left and right floaters

This commit is contained in:
kipp@netscape.com
1998-10-16 20:21:11 +00:00
parent bb1f8f3733
commit 7f6290801c
2 changed files with 6 additions and 2 deletions

View File

@@ -259,7 +259,9 @@ nsHTMLContainerFrame::MoveFrameOutOfFlow(nsIPresContext& aPresContext,
aPlaceholderFrame = nsnull;
// See if the element wants to be floated or absolutely positioned
PRBool isFloated = NS_STYLE_FLOAT_NONE != aDisplay->mFloats;
PRBool isFloated =
(NS_STYLE_FLOAT_LEFT == aDisplay->mFloats) ||
(NS_STYLE_FLOAT_RIGHT == aDisplay->mFloats);
PRBool isAbsolute = NS_STYLE_POSITION_ABSOLUTE == aPosition->mPosition;
if (isFloated || isAbsolute) {