Skip to content

Commit

Permalink
fix ui
Browse files Browse the repository at this point in the history
(cherry picked from commit 9995070)
  • Loading branch information
YiiGuxing committed Apr 2, 2021
1 parent 2e4b635 commit e5a3364
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ class NewTranslationDialogUiImpl(uiProvider: NewTranslationDialogUiProvider) : N
override val targetLangComboBox: LangComboBoxLink = LangComboBoxLink()
override val swapButton: LinkLabel<Void> = LinkLabel()
override val inputTextArea: JTextArea = JBTextArea(1, 1)
override val translationTextArea: JTextArea = JBTextArea(1, 1)
override val translationTextArea: JTextArea = JBTextArea(1, 1).apply {
isEditable = false
background = topPanel.background
}

private val inputTextAreaWrapper = createScrollPane(inputTextArea, ScrollPane.FADING_END)
private val translationTextAreaWrapper = createScrollPane(translationTextArea, ScrollPane.FADING_END)
Expand Down Expand Up @@ -167,9 +170,6 @@ class NewTranslationDialogUiImpl(uiProvider: NewTranslationDialogUiProvider) : N
}
init(inputTextArea)
init(translationTextArea)

translationTextArea.isEditable = false
translationTextArea.background = topPanel.background
}

override fun expandDictViewer() {
Expand Down

0 comments on commit e5a3364

Please sign in to comment.