Fixed auto complete ListView height so that it doesn't hide / cut items
This commit is contained in:
parent
a5145b0da7
commit
187bf80967
|
@ -69,7 +69,7 @@ ext {
|
||||||
|
|
||||||
/* JavaFX */
|
/* JavaFX */
|
||||||
|
|
||||||
javaFxUtilsVersion = '1.0.7'
|
javaFxUtilsVersion = '1.0.8-SNAPSHOT'
|
||||||
|
|
||||||
|
|
||||||
/* Test */
|
/* Test */
|
||||||
|
|
|
@ -90,6 +90,8 @@ open class AddAccountDialog(protected val presenter: BankingPresenter) : Window(
|
||||||
onAutoCompletion = { bankSelected(it) }
|
onAutoCompletion = { bankSelected(it) }
|
||||||
listCellFragment = BankInfoListCellFragment::class
|
listCellFragment = BankInfoListCellFragment::class
|
||||||
|
|
||||||
|
setPrefItemHeight(BankInfoListCellFragment.ItemHeight)
|
||||||
|
|
||||||
vboxConstraints {
|
vboxConstraints {
|
||||||
margin = TextFieldMargins
|
margin = TextFieldMargins
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,11 @@ import tornadofx.*
|
||||||
|
|
||||||
open class RemitteeListCellFragment : ListCellFragment<Remittee>() {
|
open class RemitteeListCellFragment : ListCellFragment<Remittee>() {
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val ItemHeight = 60.0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
open val remittee = RemitteeViewModel().bindTo(this)
|
open val remittee = RemitteeViewModel().bindTo(this)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,8 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
|
|
||||||
onAutoCompletion = { remitteeSelected(it) }
|
onAutoCompletion = { remitteeSelected(it) }
|
||||||
listCellFragment = RemitteeListCellFragment::class
|
listCellFragment = RemitteeListCellFragment::class
|
||||||
|
|
||||||
|
setPrefItemHeight(RemitteeListCellFragment.ItemHeight)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue