Skip to content

Commit

Permalink
Set the minimum size for a listbox cell.
Browse files Browse the repository at this point in the history
The images drawn for a selected cell require a minimum size.

The change is part 2/2 of the fix for bug #22144.
  • Loading branch information
mordante committed Jun 9, 2014
1 parent 0322918 commit b7ef64c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -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].
Expand Down
5 changes: 4 additions & 1 deletion data/gui/default/widget/toggle_panel_default.cfg
Expand Up @@ -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
Expand Down

0 comments on commit b7ef64c

Please sign in to comment.