Skip to content

Commit 8598117

Browse files
authored
Fix horizontal scrolling excessive layouts (#1296)
1 parent 1b5a78c commit 8598117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

richtextfx/src/main/java/org/fxmisc/richtext/CaretNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public CaretNode(String name, GenericStyledArea<?, ?, ?> area, SuspendableNo dep
231231

232232
bounds = Val.create(
233233
() -> area.getCaretBoundsOnScreen(this),
234-
EventStreams.merge(area.viewportDirtyEvents(), dirty)
234+
invalidationsOf(paragraphIndex)
235235
).suspendable();
236236

237237
lineIndex = Val.create(

0 commit comments

Comments
 (0)