From b7ef64cb194a986a2baf948d18d46535863d43c5 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Mon, 9 Jun 2014 19:07:53 +0200 Subject: [PATCH] Set the minimum size for a listbox cell. The images drawn for a selected cell require a minimum size. The change is part 2/2 of the fix for bug #22144. --- changelog | 1 + data/gui/default/widget/toggle_panel_default.cfg | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 12fb0d228a6..2f85b59b22d 100644 --- a/changelog +++ b/changelog @@ -59,6 +59,7 @@ Version 1.13.0-dev: * Fixed bug #22095: An assertion failure in the gamestate inspector. * Changed: A listbox can now update its size when rows are added. * Changed: Avoid listboxes to handle mouse clicks twice. + * Fixed bug #22144: An assertion failure with empty labels in a listbox. * WML engine: * Added customizable recall costs for unit types and individual units, using the new recall_cost attribute in [unit_type] and [unit]. diff --git a/data/gui/default/widget/toggle_panel_default.cfg b/data/gui/default/widget/toggle_panel_default.cfg index 87c66a1de54..93413f2d0f2 100644 --- a/data/gui/default/widget/toggle_panel_default.cfg +++ b/data/gui/default/widget/toggle_panel_default.cfg @@ -20,8 +20,11 @@ [resolution] + # The minimum required height is due to the size required for + # {GUI__LISTBOX_SELECTED_CELL} + # The issue was found bug #22144 min_width = 0 - min_height = 0 + min_height = 26 default_width = 0 default_height = 0