fixed bug 36022

r=troy (been holding this in my tree for a while)
This commit is contained in:
buster%netscape.com 2000-05-09 19:28:20 +00:00
parent 32e7a14ebc
commit fe02891c04
2 changed files with 16 additions and 4 deletions

View File

@ -205,8 +205,14 @@ nsBlockReflowContext::AlignBlockHorizontally(nscoord aWidth,
break;
case NS_STYLE_TEXT_ALIGN_MOZ_CENTER:
case NS_STYLE_TEXT_ALIGN_CENTER:
aAlign.mXOffset += remainingSpace / 2;
doCSS = PR_FALSE;
{
nsCompatibility mode;
mPresContext->GetCompatibilityMode(&mode);
if (eCompatibility_NavQuirks == mode) {
aAlign.mXOffset += remainingSpace / 2;
doCSS = PR_FALSE;
}
}
break;
}
}

View File

@ -205,8 +205,14 @@ nsBlockReflowContext::AlignBlockHorizontally(nscoord aWidth,
break;
case NS_STYLE_TEXT_ALIGN_MOZ_CENTER:
case NS_STYLE_TEXT_ALIGN_CENTER:
aAlign.mXOffset += remainingSpace / 2;
doCSS = PR_FALSE;
{
nsCompatibility mode;
mPresContext->GetCompatibilityMode(&mode);
if (eCompatibility_NavQuirks == mode) {
aAlign.mXOffset += remainingSpace / 2;
doCSS = PR_FALSE;
}
}
break;
}
}