1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Color picker was getting too much focus, made it get not as much focus.

This abuse of focus was the original culprit of #5354
This commit is contained in:
Juan Linietsky
2016-07-01 10:55:35 -03:00
parent 3185ce64c5
commit 8cbb154466
4 changed files with 18 additions and 4 deletions

View File

@@ -612,6 +612,7 @@ bool CustomPropertyEditor::edit(Object* p_owner,const String& p_name,Variant::Ty
color_picker->set_edit_alpha(hint!=PROPERTY_HINT_COLOR_NO_ALPHA);
color_picker->set_color(v);
set_size( Size2(300*EDSCALE, color_picker->get_combined_minimum_size().height+10*EDSCALE));
color_picker->set_focus_on_line_edit();
/*
int ofs=80;
int m=10;