Adjust left spacer of TreeSearchPanel, remove right spacer
This commit is contained in:
parent
a07b143d68
commit
88a617aa42
|
@ -522,7 +522,7 @@ void TreeSearchPanel::_initialize_controls() {
|
||||||
|
|
||||||
line_edit_search->set_h_size_flags(SIZE_EXPAND_FILL);
|
line_edit_search->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
|
|
||||||
_add_spacer(0.25); // otherwise the lineedits expand margin touches the left border.
|
_add_spacer(0.1); // otherwise the lineedits expand margin touches the left border.
|
||||||
add_child(line_edit_search);
|
add_child(line_edit_search);
|
||||||
add_child(find_prev_button);
|
add_child(find_prev_button);
|
||||||
add_child(find_next_button);
|
add_child(find_next_button);
|
||||||
|
@ -533,7 +533,6 @@ void TreeSearchPanel::_initialize_controls() {
|
||||||
|
|
||||||
_add_spacer(0.25);
|
_add_spacer(0.25);
|
||||||
add_child(close_button);
|
add_child(close_button);
|
||||||
_add_spacer(0.25);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TreeSearchPanel::_add_spacer(float p_width_multiplier) {
|
void TreeSearchPanel::_add_spacer(float p_width_multiplier) {
|
||||||
|
|
Loading…
Reference in New Issue