From 126eaafced984e98334e273efa4fec858ee5d366 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 25 May 2020 00:23:26 +0200 Subject: [PATCH] 400 have been too small, but didn't make it that label resizes to full width of text --- .../ui/javafx/dialogs/tan/EnterTanDialog.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/tan/EnterTanDialog.kt b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/tan/EnterTanDialog.kt index 20b95b83..8d05b227 100644 --- a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/tan/EnterTanDialog.kt +++ b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/tan/EnterTanDialog.kt @@ -4,6 +4,7 @@ import javafx.beans.property.SimpleObjectProperty import javafx.beans.property.SimpleStringProperty import javafx.geometry.Insets import javafx.geometry.Pos +import javafx.scene.layout.Region import javafx.scene.text.Font import javafx.scene.text.FontWeight import net.dankito.banking.ui.javafx.dialogs.tan.controls.ChipTanFlickerCodeView @@ -145,16 +146,15 @@ open class EnterTanDialog( } } - hbox { - maxWidth = 400.0 +// // TODO: also display rich text like , not only new line + label(challenge.messageToShowToUser.htmlToPlainText()) { + useMaxWidth = true + minWidth = Region.USE_PREF_SIZE - // TODO: also display rich text like , not only new lines - label(String.format(messages["enter.tan.dialog.hint.from.bank"], challenge.messageToShowToUser.htmlToPlainText())) { - isWrapText = true - } + isWrapText = true vboxConstraints { - marginTopBottom(6.0) + marginBottom = 18.0 } }