Skip to content

Commit fa69a42

Browse files
committed
Update MinimapView.swift
1 parent 58030bb commit fa69a42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/CodeEditSourceEditor/Minimap/MinimapView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,9 @@ public class MinimapView: FlippedNSView {
286286
).pixelAligned
287287

288288
// Only update a frame if needed
289-
if contentView.frame != newFrame && height.isFinite && height < (textView?.frame.height ?? 0.0) {
289+
if contentView.frame.height != newFrame.height && height.isFinite && height < (textView?.frame.height ?? 0.0) {
290290
contentView.frame = newFrame
291+
layout()
291292
}
292293
}
293294

0 commit comments

Comments
 (0)