hud: fix some bugs in tab list

This commit is contained in:
Bixilon 2021-09-18 14:20:42 +02:00
parent ff5755d35f
commit 48b34b7ee2
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 10 additions and 0 deletions

View File

@ -159,6 +159,12 @@ class TabListElement(hudRenderer: HUDRenderer) : Element(hudRenderer) {
background.size = size
}
override fun onParentChange() {
for (element in toRender) {
element.onParentChange()
}
}
companion object {
private const val ENTRIES_PER_COLUMN = 20

View File

@ -121,6 +121,10 @@ class TabListEntryElement(
forcePrepare = false
}
override fun onParentChange() {
forcePrepare = true
}
companion object {
const val HEIGHT = 10