diff options
author | kobewi <kobewi4e@gmail.com> | 2022-08-29 14:28:01 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-29 14:28:01 +0200 |
commit | ef19e7bae0cb1f7750546527bb2c03dee95362d2 (patch) | |
tree | f5c690a065f75b5b051131365febf045ccd2070f | |
parent | e60086f98b07365d6174677df84c9a22bfb56d15 (diff) |
Fix Import dock being too wide
-rw-r--r-- | editor/import_dock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 02270e163f..4732268256 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -628,6 +628,9 @@ ImportDock::ImportDock() { content->add_margin_child(TTR("Import As:"), hb); import_as = memnew(OptionButton); import_as->set_disabled(true); + import_as->set_fit_to_longest_item(false); + import_as->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS); + import_as->set_h_size_flags(SIZE_EXPAND_FILL); import_as->connect("item_selected", callable_mp(this, &ImportDock::_importer_selected)); hb->add_child(import_as); import_as->set_h_size_flags(SIZE_EXPAND_FILL); |