From 816e542e1cd2ac886f4fef36ce534af94b544dd1 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Sat, 14 May 2022 22:19:02 +0200 Subject: [PATCH] Notifications not scrollable far enough after in-turn notifications got added (#6796) --- android/assets/jsons/translations/template.properties | 2 +- core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index c7ef9ce9e5..64816c3f4b 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -1261,7 +1261,7 @@ Base unit buy cost: [amount]¤ = Research agreement cost: [amount]¤ = -S# Policies +# Policies Adopt policy = Adopt free policy = diff --git a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt index 008a7239ad..b1cd911eca 100644 --- a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt +++ b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt @@ -52,6 +52,8 @@ class NotificationsScroll( notificationsHash = notifications.hashCode() notificationsTable.clearChildren() + endOfTableSpacerCell = null + for (notification in notifications.asReversed().toList()) { // toList to avoid concurrency problems val listItem = Table() listItem.background = ImageGetter.getRoundedEdgeRectangle()