Fixed that updateButton keeps its height
This commit is contained in:
parent
f1494d485a
commit
eafebd6a10
|
@ -19,6 +19,10 @@ open class AccountTransactionsControlView(
|
||||||
protected val balance: SimpleStringProperty
|
protected val balance: SimpleStringProperty
|
||||||
) : View() {
|
) : View() {
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val PanelHeight = 36.0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected val supportsRetrievingAccountTransactions = SimpleBooleanProperty(false)
|
protected val supportsRetrievingAccountTransactions = SimpleBooleanProperty(false)
|
||||||
|
|
||||||
|
@ -26,7 +30,7 @@ open class AccountTransactionsControlView(
|
||||||
|
|
||||||
|
|
||||||
override val root = borderpane {
|
override val root = borderpane {
|
||||||
fixedHeight = 36.0
|
fixedHeight = PanelHeight
|
||||||
|
|
||||||
left = label(messages["account.transactions.control.view.search.label"]) {
|
left = label(messages["account.transactions.control.view.search.label"]) {
|
||||||
borderpaneConstraints {
|
borderpaneConstraints {
|
||||||
|
@ -68,6 +72,8 @@ open class AccountTransactionsControlView(
|
||||||
}
|
}
|
||||||
|
|
||||||
updateButton {
|
updateButton {
|
||||||
|
fixedHeight = PanelHeight
|
||||||
|
|
||||||
enableWhen(supportsRetrievingAccountTransactions)
|
enableWhen(supportsRetrievingAccountTransactions)
|
||||||
|
|
||||||
action { updateAccountTransactions(this) }
|
action { updateAccountTransactions(this) }
|
||||||
|
|
Loading…
Reference in New Issue