Implement Tree's internal minimum width calculation
This commit is contained in:
parent
b2dddc3c82
commit
d7d32ced5b
20 changed files with 193 additions and 108 deletions
|
|
@ -367,8 +367,8 @@ ResourcePreloaderEditor::ResourcePreloaderEditor() {
|
|||
tree = memnew(Tree);
|
||||
tree->connect("button_pressed", callable_mp(this, &ResourcePreloaderEditor::_cell_button_pressed));
|
||||
tree->set_columns(2);
|
||||
tree->set_column_min_width(0, 2);
|
||||
tree->set_column_min_width(1, 3);
|
||||
tree->set_column_custom_minimum_width(0, 2);
|
||||
tree->set_column_custom_minimum_width(1, 3);
|
||||
tree->set_column_expand(0, true);
|
||||
tree->set_column_expand(1, true);
|
||||
tree->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue