mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
hud: fix some bugs in tab list
This commit is contained in:
parent
ff5755d35f
commit
48b34b7ee2
@ -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
|
||||
|
@ -121,6 +121,10 @@ class TabListEntryElement(
|
||||
forcePrepare = false
|
||||
}
|
||||
|
||||
override fun onParentChange() {
|
||||
forcePrepare = true
|
||||
}
|
||||
|
||||
|
||||
companion object {
|
||||
const val HEIGHT = 10
|
||||
|
Loading…
x
Reference in New Issue
Block a user