File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -616,13 +616,15 @@ class RenderCSSBox extends RenderBox
616616 RenderBox ? markerBox = childParentData.nextSibling;
617617 if (markerBox != null ) {
618618 final markerBoxParentData = markerBox.parentData! as CSSBoxParentData ;
619- final distance = (child.getDistanceToBaseline (TextBaseline .alphabetic,
620- onlyReal: true ) ??
621- 0 ) +
622- topOffset;
623- final offsetHeight = distance -
624- (markerBox.getDistanceToBaseline (TextBaseline .alphabetic) ??
625- markerBox.size.height);
619+ // final distance = (child.getDistanceToBaseline(TextBaseline.alphabetic,
620+ // onlyReal: true) ??
621+ // 0) +
622+ // topOffset;
623+ // final offsetHeight = distance -
624+ // (markerBox.getDistanceToBaseline(TextBaseline.alphabetic) ??
625+ // markerBox.size.height);
626+ // TODO handle block children better by modifying above approach
627+ final offsetHeight = topOffset;
626628 switch (_textDirection) {
627629 case TextDirection .rtl:
628630 markerBoxParentData.offset = Offset (
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ class Style {
297297
298298 TextStyle generateTextStyle () {
299299 return TextStyle (
300- backgroundColor: backgroundColor,
300+ backgroundColor: (display ? .isBlock ?? false ) ? null : backgroundColor,
301301 color: color,
302302 decoration: textDecoration,
303303 decorationColor: textDecorationColor,
You can’t perform that action at this time.
0 commit comments