Fix #11698, broken file chooser in editor

This commit is contained in:
András Salamon 2005-05-03 22:24:52 +00:00
parent 9f53af2c79
commit c9fd93b08e
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,6 @@
CVS HEAD:
* user interface improvements:
* fix editor file chooser when starting directory has many files (#11698)
* made it so network dialogs show progress of data transfers again
* starting position in editor now starts at player 1 (#10625)
* fixed female units not appearing in help (broken since 0.9.0)

View file

@ -47,8 +47,11 @@ file_chooser::file_chooser(display &disp, std::string start_file)
current_dir_ = path_delim_;
chosen_file_ = current_dir_;
}
// Set sizes to some default values.
set_measurements(400, 500);
// FIXME: quick hack
// on a high-res screen the initial max_items_onscreen is based
// on .66 of y dimension, eg. 17 menu items, exceeding the
// starting box which can only take 13 or so: force it to be smaller
set_measurements(400, 384);
update_file_lists();
display_chosen_file();
}