From a728da6a2a0fc82d18201a972e54229b91ab0abb Mon Sep 17 00:00:00 2001 From: JackRainy Date: Fri, 31 Jan 2020 07:50:51 +0200 Subject: [PATCH] Fix: do not trim the text in the statistics screen (#1810) --- core/src/com/unciv/ui/cityscreen/CityInfoTable.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt b/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt index 42cd842250..1ac0418f7e 100644 --- a/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt +++ b/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt @@ -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() }