You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
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:
@@ -930,11 +930,14 @@ ThemeItemImportTree::ThemeItemImportTree() {
|
||||
import_items_tree->set_column_title(IMPORT_ITEM, TTR("Import"));
|
||||
import_items_tree->set_column_title(IMPORT_ITEM_DATA, TTR("With Data"));
|
||||
import_items_tree->set_column_expand(0, true);
|
||||
import_items_tree->set_column_clip_content(0, true);
|
||||
import_items_tree->set_column_expand(IMPORT_ITEM, false);
|
||||
import_items_tree->set_column_expand(IMPORT_ITEM_DATA, false);
|
||||
import_items_tree->set_column_custom_minimum_width(0, 160 * EDSCALE);
|
||||
import_items_tree->set_column_custom_minimum_width(IMPORT_ITEM, 80 * EDSCALE);
|
||||
import_items_tree->set_column_custom_minimum_width(IMPORT_ITEM_DATA, 80 * EDSCALE);
|
||||
import_items_tree->set_column_clip_content(1, true);
|
||||
import_items_tree->set_column_clip_content(2, true);
|
||||
|
||||
ScrollContainer *import_bulk_sc = memnew(ScrollContainer);
|
||||
import_bulk_sc->set_custom_minimum_size(Size2(260.0, 0.0) * EDSCALE);
|
||||
|
||||
Reference in New Issue
Block a user