Fixed auto complete ListView height so that it doesn't hide / cut items

This commit is contained in:
dankito 2020-06-25 00:26:15 +02:00
parent a5145b0da7
commit 187bf80967
4 changed files with 10 additions and 1 deletions

View File

@ -69,7 +69,7 @@ ext {
/* JavaFX */
javaFxUtilsVersion = '1.0.7'
javaFxUtilsVersion = '1.0.8-SNAPSHOT'
/* Test */

View File

@ -90,6 +90,8 @@ open class AddAccountDialog(protected val presenter: BankingPresenter) : Window(
onAutoCompletion = { bankSelected(it) }
listCellFragment = BankInfoListCellFragment::class
setPrefItemHeight(BankInfoListCellFragment.ItemHeight)
vboxConstraints {
margin = TextFieldMargins
}

View File

@ -6,6 +6,11 @@ import tornadofx.*
open class RemitteeListCellFragment : ListCellFragment<Remittee>() {
companion object {
const val ItemHeight = 60.0
}
open val remittee = RemitteeViewModel().bindTo(this)

View File

@ -141,6 +141,8 @@ open class TransferMoneyDialog @JvmOverloads constructor(
onAutoCompletion = { remitteeSelected(it) }
listCellFragment = RemitteeListCellFragment::class
setPrefItemHeight(RemitteeListCellFragment.ItemHeight)
}
}