Merge pull request #19097 from volzhs/fix-import-filename

Make filename clipped on Import dock
This commit is contained in:
Max Hilbrunner 2018-05-23 18:16:04 +02:00 committed by GitHub
commit d55351ed20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,6 +407,7 @@ ImportDock::ImportDock() {
set_name("Import");
imported = memnew(Label);
imported->add_style_override("normal", EditorNode::get_singleton()->get_gui_base()->get_stylebox("normal", "LineEdit"));
imported->set_clip_text(true);
add_child(imported);
HBoxContainer *hb = memnew(HBoxContainer);
add_margin_child(TTR("Import As:"), hb);