Correction to mroot width calculation. b=363240 r+sr=roc
authorkarlt+@karlt.net
Thu, 27 Mar 2008 15:47:08 -0700
changeset 13646 124a705ae6973c6cd304c39be0c6522060c03e60
parent 13645 fcb365260d20825e89902c01fbe43bdc7c48e51b
child 13647 76fb151fc96affe62fbc90af1e4aef85f93ed5f5
push idunknown
push userunknown
push dateunknown
bugs363240
milestone1.9pre
Correction to mroot width calculation. b=363240 r+sr=roc
layout/mathml/base/src/nsMathMLmrootFrame.cpp
--- a/layout/mathml/base/src/nsMathMLmrootFrame.cpp
+++ b/layout/mathml/base/src/nsMathMLmrootFrame.cpp
@@ -410,17 +410,17 @@ nsMathMLmrootFrame::GetIntrinsicWidth(ns
                                          nsLayoutUtils::PREF_WIDTH);
   nscoord sqrWidth = mSqrChar.GetMaxWidth(PresContext(), *aRenderingContext);
 
   nsCOMPtr<nsIFontMetrics> fm;
   aRenderingContext->GetFontMetrics(*getter_AddRefs(fm));
   nscoord dxSqr;
   GetRadicalXOffsets(indexWidth, sqrWidth, fm, nsnull, &dxSqr);
 
-  return dxSqr + baseWidth;
+  return dxSqr + sqrWidth + baseWidth;
 }
 
 // ----------------------
 // the Style System will use these to pass the proper style context to our MathMLChar
 nsStyleContext*
 nsMathMLmrootFrame::GetAdditionalStyleContext(PRInt32 aIndex) const
 {
   switch (aIndex) {