~widelands-dev/widelands/scripting_ui_ibase

Viewing all changes in revision 8313.

Merged lp:~widelands-dev/widelands/bug-1653460-panel-init-width:
Fixed assertion failure in int UI::Panel::get_inner_h():

- Fixed bug with automatic column sizing for tables where the columns were already being resized before all of them were added.
- Allow getting inner width/height for panels that have their borders set but w/h == 0. Added assertions and fallbacks to set_size and set_desired_size to make sure that width/height will never be negative.
- Explicitly initialize all variables in ui_basic.
- Only layout spinbox if it has size.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: