Don't allow a vertical stretchy character to shrink, r+sr=roc, b=306004

git-svn-id: svn://10.0.0.236/trunk@179740 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2005-09-06 23:14:12 +00:00
parent c2a1a2c1ef
commit cc6b09d14b

View File

@@ -1602,7 +1602,9 @@ nsMathMLChar::Stretch(nsPresContext* aPresContext,
targetSize = aContainerSize.width;
}
// if we are not a largeop in display mode, return if size fits
if (targetSize <= 0 || (!largeop && IsSizeOK(charSize, targetSize, aStretchHint))) {
if ((targetSize <= 0) ||
(!largeop && ((isVertical && charSize >= targetSize) ||
IsSizeOK(charSize, targetSize, aStretchHint)))) {
// ensure that the char later behaves like a normal char
// (will be reset back to its intrinsic value in case of dynamic updates)
mDirection = NS_STRETCH_DIRECTION_UNSUPPORTED;