summaryrefslogtreecommitdiff
path: root/javax/swing/text/html/ParagraphView.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/text/html/ParagraphView.java')
-rw-r--r--javax/swing/text/html/ParagraphView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/javax/swing/text/html/ParagraphView.java b/javax/swing/text/html/ParagraphView.java
index 8443515d3..d149627ff 100644
--- a/javax/swing/text/html/ParagraphView.java
+++ b/javax/swing/text/html/ParagraphView.java
@@ -153,8 +153,15 @@ public class ParagraphView
(short) painter.getInset(BOTTOM, this),
(short) painter.getInset(RIGHT, this));
+ StyleSheet ss = getStyleSheet();
+ float emBase = ss.getEMBase(attributes);
+ float exBase = ss.getEXBase(attributes);
cssWidth = (Length) attributes.getAttribute(CSS.Attribute.WIDTH);
+ if (cssWidth != null)
+ cssWidth.setFontBases(emBase, exBase);
cssHeight = (Length) attributes.getAttribute(CSS.Attribute.WIDTH);
+ if (cssHeight != null)
+ cssHeight.setFontBases(emBase, exBase);
}
}