Take into account the clear icon's size even when not visible in LineEdit
s
This commit is contained in:
parent
ef8401edf5
commit
43b0e054be
1 changed files with 1 additions and 1 deletions
|
@ -1563,7 +1563,7 @@ Size2 LineEdit::get_minimum_size() const {
|
||||||
min_size.height = font->get_height();
|
min_size.height = font->get_height();
|
||||||
|
|
||||||
// Take icons into account.
|
// Take icons into account.
|
||||||
if (!text.empty() && is_editable() && clear_button_enabled) {
|
if (clear_button_enabled) {
|
||||||
min_size.width = MAX(min_size.width, Control::get_icon("clear")->get_width());
|
min_size.width = MAX(min_size.width, Control::get_icon("clear")->get_width());
|
||||||
min_size.height = MAX(min_size.height, Control::get_icon("clear")->get_height());
|
min_size.height = MAX(min_size.height, Control::get_icon("clear")->get_height());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue