mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Resolved #13330 - City stats table immediately scrollable again, AND scrollable all the way to the end
UI is hard
This commit is contained in:
parent
26846bbabf
commit
a235e1fbef
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user