Skip to content

Commit a3f2275

Browse files
committed
rt and ruby distance
1 parent b5046d9 commit a3f2275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/replaced_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class RubyElement extends ReplacedElement {
311311
List<Widget> widgets = List<Widget>();
312312
//TODO calculate based off of parent font size.
313313
final rubySize = max(9.0, context.style.fontSize.size / 2);
314-
final rubyYPos = rubySize + 2;
314+
final rubyYPos = rubySize + rubySize / 2;
315315
element.nodes.forEach((c) {
316316
if (c.nodeType == dom.Node.TEXT_NODE) {
317317
textNode = c;

0 commit comments

Comments
 (0)