You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix 'LineEdit' offset limit not accounting for the right/clear icon width
Fully fixes #28242.
This commit is contained in:
@@ -722,6 +722,8 @@ void LineEdit::_notification(int p_what) {
|
||||
} else {
|
||||
x_ofs = MAX(style->get_margin(MARGIN_LEFT), x_ofs - r_icon->get_width() - style->get_margin(MARGIN_RIGHT));
|
||||
}
|
||||
|
||||
ofs_max -= r_icon->get_width();
|
||||
}
|
||||
|
||||
int caret_height = font->get_height() > y_area ? y_area : font->get_height();
|
||||
|
||||
Reference in New Issue
Block a user