Commit 3b72add 1 parent ed1f5e9 commit 3b72add Copy full SHA for 3b72add
File tree 2 files changed +10
-8
lines changed
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
616
616
RenderBox ? markerBox = childParentData.nextSibling;
617
617
if (markerBox != null ) {
618
618
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;
626
628
switch (_textDirection) {
627
629
case TextDirection .rtl:
628
630
markerBoxParentData.offset = Offset (
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ class Style {
297
297
298
298
TextStyle generateTextStyle () {
299
299
return TextStyle (
300
- backgroundColor: backgroundColor,
300
+ backgroundColor: (display ? .isBlock ?? false ) ? null : backgroundColor,
301
301
color: color,
302
302
decoration: textDecoration,
303
303
decorationColor: textDecorationColor,
You can’t perform that action at this time.
0 commit comments