mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 13:21:10 +01:00
Fix LineEdit clear button for asymmetric stylebox
This commit is contained in:
parent
0c4799c45a
commit
2d6183beb7
@ -719,7 +719,7 @@ bool LineEdit::_is_over_clear_button(const Point2 &p_pos) const {
|
||||
return false;
|
||||
}
|
||||
Ref<Texture> icon = Control::get_icon("clear");
|
||||
int x_ofs = get_stylebox("normal")->get_offset().x;
|
||||
int x_ofs = get_stylebox("normal")->get_margin(MARGIN_RIGHT);
|
||||
return p_pos.x > get_size().width - icon->get_width() - x_ofs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user