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() }