Skip to content

Commit f30cac7

Browse files
committed
ParagraphOverlayGraphicFactory: fixed "show whitespace" for areas that have background color (e.g. code blocks, bold, italic, ...)
overlay nodes are now painted 'over' text
1 parent c291c7d commit f30cac7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/main/java/org/markdownwriterfx/editor/ParagraphOverlayGraphicFactory.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import java.util.IdentityHashMap;
3434
import java.util.List;
3535
import java.util.function.IntFunction;
36-
import javafx.collections.ObservableList;
3736
import javafx.geometry.HPos;
3837
import javafx.geometry.Insets;
3938
import javafx.geometry.Rectangle2D;
@@ -140,15 +139,6 @@ private class ParagraphGraphic
140139
setNeedsLayout(true);
141140
});
142141
}
143-
144-
// make this node is the first child so that its nodes are rendered
145-
// 'under' the paragraph text
146-
if (newParent != null && newParent.getChildrenUnmodifiable().get(0) != this) {
147-
@SuppressWarnings("unchecked")
148-
ObservableList<Node> children = (ObservableList<Node>) invoke(mGetChildren, newParent);
149-
children.remove(this);
150-
children.add(0, this);
151-
}
152142
});
153143
}
154144

0 commit comments

Comments
 (0)