Listbox rows no longer have a fixed height.
Remove the old part of the code which allowed that.
This commit is contained in:
parent
7f6c207a53
commit
e77b593dd7
7 changed files with 1 additions and 23 deletions
|
@ -68,8 +68,6 @@
|
|||
id = "addon_list"
|
||||
definition = "default"
|
||||
|
||||
assume_fixed_row_size = "true"
|
||||
|
||||
[header]
|
||||
|
||||
[row]
|
||||
|
|
|
@ -69,8 +69,6 @@
|
|||
id = "language_list"
|
||||
definition = "default"
|
||||
|
||||
assume_fixed_row_size = "true"
|
||||
|
||||
[list_definition]
|
||||
|
||||
[row]
|
||||
|
|
|
@ -263,7 +263,6 @@
|
|||
id = "map_list"
|
||||
definition = "default"
|
||||
|
||||
assume_fixed_row_size = "true"
|
||||
[list_definition]
|
||||
|
||||
[row]
|
||||
|
|
|
@ -109,7 +109,6 @@ The Battle for Wesnoth forum can be found at http://www.wesnoth.org/forum/"
|
|||
|
||||
vertical_scrollbar_mode = "never"
|
||||
horizontal_scrollbar_mode = "never"
|
||||
assume_fixed_row_size = "true"
|
||||
|
||||
[list_definition]
|
||||
|
||||
|
|
|
@ -68,8 +68,6 @@
|
|||
id = "server_list"
|
||||
definition = "default"
|
||||
|
||||
assume_fixed_row_size = "true"
|
||||
|
||||
[header]
|
||||
|
||||
[row]
|
||||
|
|
|
@ -695,8 +695,7 @@ tbuilder_listbox::tbuilder_listbox(const config& cfg) :
|
|||
header(cfg.child("header") ? new tbuilder_grid(*(cfg.child("header"))) : 0),
|
||||
footer(cfg.child("footer") ? new tbuilder_grid(*(cfg.child("footer"))) : 0),
|
||||
list_builder(0),
|
||||
list_data(),
|
||||
assume_fixed_row_size(utils::string_bool(cfg["assume_fixed_row_size"]))
|
||||
list_data()
|
||||
{
|
||||
/*WIKI
|
||||
* @page = GUIToolkitWML
|
||||
|
@ -730,17 +729,6 @@ tbuilder_listbox::tbuilder_listbox(const config& cfg) :
|
|||
* initial data for the listbox. Every row
|
||||
* must have the same number of columns as
|
||||
* the 'list_definition'.
|
||||
*
|
||||
* assume_fixed_row_size (bool = true)
|
||||
* If not all rows can be shown this value
|
||||
* becomes important. If fixed size we
|
||||
* always show X rows and no half rows are
|
||||
* shown. This doesn't mean the rows need to
|
||||
* be fixed size eg the addon dialog might
|
||||
* get the option to show verbose info in
|
||||
* the same listbox in that case it's still
|
||||
* allowed to set the value.
|
||||
*
|
||||
* @end_table
|
||||
*
|
||||
*
|
||||
|
|
|
@ -174,8 +174,6 @@ public:
|
|||
* serialize the data in the config, so the config is no longer required.
|
||||
*/
|
||||
std::vector<string_map>list_data;
|
||||
|
||||
const bool assume_fixed_row_size;
|
||||
};
|
||||
|
||||
struct tbuilder_menubar : public tbuilder_control
|
||||
|
|
Loading…
Add table
Reference in a new issue