Removed some scroll related logic that was causing computed widths to be

computed incorrectly. Now the scroll frame handles it
This commit is contained in:
troy@netscape.com
1999-01-20 03:43:33 +00:00
parent a4a186020f
commit d8a19191d9
2 changed files with 0 additions and 16 deletions
@@ -580,14 +580,6 @@ nsHTMLReflowState::InitConstraints(nsIPresContext& aPresContext)
nsStyleUnit widthUnit = pos->mWidth.GetUnit();
nsStyleUnit heightUnit = pos->mHeight.GetUnit();
// It's possible the child's max width is less than the width of the
// containing block (e.g., for scrolled elements because we subtract for
// the scrollbar width).
// XXX Don't do this if the max width is 0, which is the case for floaters...
if ((availableWidth < containingBlockWidth) && (availableWidth > 0)) {
containingBlockWidth = availableWidth;
}
// Check for a percentage based width and an unconstrained containing
// block width
if (eStyleUnit_Percent == widthUnit) {