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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user