Resolved #13330 - City stats table immediately scrollable again, AND scrollable all the way to the end

UI is hard
This commit is contained in:
yairm210 2025-05-20 15:46:50 +03:00
parent 26846bbabf
commit a235e1fbef

View File

@ -104,8 +104,9 @@ class CityStatsTable(private val cityScreen: CityScreen) : Table() {
lowerTable.pack()
lowerPane.layout()
lowerPane.updateVisualScroll()
expander.pack() // update expander, to set header height correctly for next line
expander.header.pack() // set header height correctly for next line
lowerCell?.maxHeight(height - expander.header.height - 8f) // 2 on each side of each cell in expander
expander.pack() // update expander so the scrollpane is scollable immediately without need for click
pack() // update self last
}