mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03: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:
@@ -631,13 +631,16 @@ EditorProfiler::EditorProfiler() {
|
||||
variables->set_column_titles_visible(true);
|
||||
variables->set_column_title(0, TTR("Name"));
|
||||
variables->set_column_expand(0, true);
|
||||
variables->set_column_custom_minimum_width(0, 60 * EDSCALE);
|
||||
variables->set_column_clip_content(0, true);
|
||||
variables->set_column_expand_ratio(0, 60);
|
||||
variables->set_column_title(1, TTR("Time"));
|
||||
variables->set_column_expand(1, false);
|
||||
variables->set_column_custom_minimum_width(1, 100 * EDSCALE);
|
||||
variables->set_column_clip_content(1, true);
|
||||
variables->set_column_expand_ratio(1, 100);
|
||||
variables->set_column_title(2, TTR("Calls"));
|
||||
variables->set_column_expand(2, false);
|
||||
variables->set_column_custom_minimum_width(2, 60 * EDSCALE);
|
||||
variables->set_column_clip_content(2, true);
|
||||
variables->set_column_expand_ratio(2, 60);
|
||||
variables->connect("item_edited", callable_mp(this, &EditorProfiler::_item_edited));
|
||||
|
||||
graph = memnew(TextureRect);
|
||||
|
||||
Reference in New Issue
Block a user