Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
styled_widget: respect minimum size even for non-text widgets
For widgets which don't contain text (label_ is empty), request_reduce_width() and request_reduce_height() can be implemented in a way that respects the minimum size set in widget definition. However, neither of those functions do anything for non-text widgets. This commit simply implements the request_reduce_* functions for non-text widgets, and overrides the implementation for spacers because ingame WML messages break otherwise.
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters