From cc6b09d14bcbf2407f2602e2af56d32cade5842a Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Tue, 6 Sep 2005 23:14:12 +0000 Subject: [PATCH] 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 --- mozilla/layout/mathml/base/src/nsMathMLChar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/mathml/base/src/nsMathMLChar.cpp b/mozilla/layout/mathml/base/src/nsMathMLChar.cpp index cc63c7de2f7..88796ab9555 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLChar.cpp +++ b/mozilla/layout/mathml/base/src/nsMathMLChar.cpp @@ -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;