From 02b761b24eb60d9e269207782e8fa17c62ec986e Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sat, 14 Jun 2014 14:43:45 +0200 Subject: [PATCH] Set the minimum width for a listbox cell. This fixes bug #22046. --- changelog | 3 ++- data/gui/default/widget/toggle_panel_default.cfg | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog b/changelog index 3ff203ea0fff..9e8d0dad5cd4 100644 --- a/changelog +++ b/changelog @@ -59,7 +59,8 @@ 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. + * Fixed bug #22144 + #22046: An assertion failure with empty labels in + a listbox. * The :inspect dialog now uses the same function as saved games to generate WML in text form instead of a simplified version. * Added a button to copy the currently displayed content from the :inspect diff --git a/data/gui/default/widget/toggle_panel_default.cfg b/data/gui/default/widget/toggle_panel_default.cfg index 93413f2d0f29..49144ab9c8d1 100644 --- a/data/gui/default/widget/toggle_panel_default.cfg +++ b/data/gui/default/widget/toggle_panel_default.cfg @@ -23,7 +23,8 @@ # The minimum required height is due to the size required for # {GUI__LISTBOX_SELECTED_CELL} # The issue was found bug #22144 - min_width = 0 + # Bug #22046 showed the minimum width should also be set. + min_width = 26 min_height = 26 default_width = 0