Fix: do not trim the text in the statistics screen (#1810)

This commit is contained in:
JackRainy 2020-01-31 07:50:51 +02:00 committed by GitHub
parent e69f092d3a
commit a728da6a2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,13 +56,13 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
val titleTable = Table().background(ImageGetter.getBackground(ImageGetter.getBlue()))
val width = cityScreen.stage.width/4 - 2*pad
val showHideTableWrapper = Table()
showHideTableWrapper.add(showHideTable).width(width)
showHideTableWrapper.add(showHideTable).minWidth(width)
titleTable.add(str.toLabel(fontSize = 24))
titleTable.onClick {
if(showHideTableWrapper.hasChildren()) showHideTableWrapper.clear()
else showHideTableWrapper.add(showHideTable).width(width)
else showHideTableWrapper.add(showHideTable).minWidth(width)
}
add(titleTable).width(width).row()
add(titleTable).minWidth(width).row()
add(showHideTableWrapper).row()
}