mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
fix selection in LineEdit
This commit is contained in:
parent
fdbf6ecc9f
commit
209189b969
1 changed files with 2 additions and 1 deletions
|
|
@ -1202,7 +1202,8 @@ void LineEdit::_notification(int p_what) {
|
|||
if (rect.position.x < x_ofs) {
|
||||
rect.size.x -= (x_ofs - rect.position.x);
|
||||
rect.position.x = x_ofs;
|
||||
} else if (rect.position.x + rect.size.x > ofs_max) {
|
||||
}
|
||||
if (rect.position.x + rect.size.x > ofs_max) {
|
||||
rect.size.x = ofs_max - rect.position.x;
|
||||
}
|
||||
RenderingServer::get_singleton()->canvas_item_add_rect(ci, rect, selection_color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue