Fixed that updateButton keeps its height

This commit is contained in:
dankl 2020-01-26 13:14:49 +01:00 committed by dankito
parent f1494d485a
commit eafebd6a10
1 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,10 @@ open class AccountTransactionsControlView(
protected val balance: SimpleStringProperty
) : View() {
companion object {
const val PanelHeight = 36.0
}
protected val supportsRetrievingAccountTransactions = SimpleBooleanProperty(false)
@ -26,7 +30,7 @@ open class AccountTransactionsControlView(
override val root = borderpane {
fixedHeight = 36.0
fixedHeight = PanelHeight
left = label(messages["account.transactions.control.view.search.label"]) {
borderpaneConstraints {
@ -68,6 +72,8 @@ open class AccountTransactionsControlView(
}
updateButton {
fixedHeight = PanelHeight
enableWhen(supportsRetrievingAccountTransactions)
action { updateAccountTransactions(this) }