Clean up Tree
Fixes some problems introduced by #49917 * Tree used minimum size as a stretch ratio, so it forced a minimum size of 1. * Minimum size redone, stretch ratio moved to a separate setting * Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired. * Added a clip content option for situations where fit to contents does not apply. * Icon would scroll with the item, making it invislbe if the item is too long. * Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
This commit is contained in:
@ -212,10 +212,15 @@ EditorPluginSettings::EditorPluginSettings() {
|
||||
plugin_list->set_column_title(3, TTR("Status:"));
|
||||
plugin_list->set_column_title(4, TTR("Edit:"));
|
||||
plugin_list->set_column_expand(0, true);
|
||||
plugin_list->set_column_clip_content(0, true);
|
||||
plugin_list->set_column_expand(1, false);
|
||||
plugin_list->set_column_clip_content(1, true);
|
||||
plugin_list->set_column_expand(2, false);
|
||||
plugin_list->set_column_clip_content(2, true);
|
||||
plugin_list->set_column_expand(3, false);
|
||||
plugin_list->set_column_clip_content(3, true);
|
||||
plugin_list->set_column_expand(4, false);
|
||||
plugin_list->set_column_clip_content(4, true);
|
||||
plugin_list->set_column_custom_minimum_width(1, 100 * EDSCALE);
|
||||
plugin_list->set_column_custom_minimum_width(2, 250 * EDSCALE);
|
||||
plugin_list->set_column_custom_minimum_width(3, 80 * EDSCALE);
|
||||
|
||||
Reference in New Issue
Block a user