400 have been too small, but didn't make it that label resizes to full width of text

This commit is contained in:
dankito 2020-05-25 00:23:26 +02:00
parent 7713f5b6e5
commit 126eaafced
1 changed files with 7 additions and 7 deletions

View File

@ -4,6 +4,7 @@ import javafx.beans.property.SimpleObjectProperty
import javafx.beans.property.SimpleStringProperty import javafx.beans.property.SimpleStringProperty
import javafx.geometry.Insets import javafx.geometry.Insets
import javafx.geometry.Pos import javafx.geometry.Pos
import javafx.scene.layout.Region
import javafx.scene.text.Font import javafx.scene.text.Font
import javafx.scene.text.FontWeight import javafx.scene.text.FontWeight
import net.dankito.banking.ui.javafx.dialogs.tan.controls.ChipTanFlickerCodeView import net.dankito.banking.ui.javafx.dialogs.tan.controls.ChipTanFlickerCodeView
@ -145,16 +146,15 @@ open class EnterTanDialog(
} }
} }
hbox { // // TODO: also display rich text like <b>, not only new line
maxWidth = 400.0 label(challenge.messageToShowToUser.htmlToPlainText()) {
useMaxWidth = true
minWidth = Region.USE_PREF_SIZE
// TODO: also display rich text like <b>, not only new lines
label(String.format(messages["enter.tan.dialog.hint.from.bank"], challenge.messageToShowToUser.htmlToPlainText())) {
isWrapText = true isWrapText = true
}
vboxConstraints { vboxConstraints {
marginTopBottom(6.0) marginBottom = 18.0
} }
} }