Skip to content

Commit 2f24229

Browse files
committed
Fix editor scroll
1 parent 58e0fb9 commit 2f24229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rider/main/kotlin/com/jetbrains/rider/plugins/dotnetdisassembler/AsmContentPanel.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ class SingleContentPanel(
174174
val document = EditorFactory.getInstance().createDocument(StringUtil.convertLineSeparators(initialContent ?: ""))
175175
editor = EditorFactory.getInstance().createEditor(document, project)
176176
configureAsmEditor(editor)
177-
val scrollPane = JBScrollPane(editor.component)
178-
contentPanel.add(scrollPane, BorderLayout.CENTER)
177+
contentPanel.add(editor.component, BorderLayout.CENTER)
179178
}
180179

181180
override fun updateContent(current: String, snapshot: String?) {

0 commit comments

Comments
 (0)