mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -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
|
background.size = size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onParentChange() {
|
||||||
|
for (element in toRender) {
|
||||||
|
element.onParentChange()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val ENTRIES_PER_COLUMN = 20
|
private const val ENTRIES_PER_COLUMN = 20
|
||||||
|
@ -121,6 +121,10 @@ class TabListEntryElement(
|
|||||||
forcePrepare = false
|
forcePrepare = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onParentChange() {
|
||||||
|
forcePrepare = true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val HEIGHT = 10
|
const val HEIGHT = 10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user