backed out a mistake from my last checkin. table min sizes are ok again

This commit is contained in:
buster@netscape.com
1998-08-04 00:56:57 +00:00
parent 8f3bf1f37c
commit edd7ce7708
4 changed files with 6 additions and 12 deletions
@@ -141,7 +141,6 @@ PRBool BasicTableLayoutStrategy::Initialize(nsSize* aMaxElementSize)
if (nsnull!=aMaxElementSize)
{
aMaxElementSize->height = 0;
// begin REMOVE_ME_WHEN_TABLE_STYLE_IS_RESOLVED!
nsIFrame * parent = nsnull;
mTableFrame->GetGeometricParent(parent);
@@ -151,7 +150,10 @@ PRBool BasicTableLayoutStrategy::Initialize(nsSize* aMaxElementSize)
nsMargin borderPadding;
const nsStyleSpacing* spacing;
if (tablePosition->mWidth.GetUnit()==eStyleUnit_Coord)
{
aMaxElementSize->width = tablePosition->mWidth.GetCoordValue();
aMaxElementSize->width = PR_MAX(aMaxElementSize->width, mMinTableWidth);
}
else
aMaxElementSize->width = mMinTableWidth;