You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for project migration to Godot 4, change line 24 to l.text = var_to_str(pos). Beware: terrible performance in Godot 4
The text was updated successfully, but these errors were encountered:
MJacred
changed the title
TextEdit.get_rect_at_line_column() returns negative pos even though cursor is in viewable area of the controlTextEdit.get_rect_at_line_column returns negative pos even though cursor is in viewable area of the control
Sep 5, 2023
Godot version
3.5.2, 4.1.1
System information
Godot v3.5.2.stable and v4.1.1.stable - Ubuntu 20.04.6 LTS (Focal Fossa) - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 970 (nvidia; 525.125.06) - Intel(R) Core(TM) i7-10700KF CPU @ 3.80GHz (16 Threads)
Issue description
Note: as
get_pos_at_line_column
callsget_rect_at_line_column
, it is affected as well.In Godot 3:
Always incorrect for last column.
In Godot 4:
Always incorrect if the line has only 0 or 1 characters.
And starting with second line when there's exactly 1 character.
Pinging @YuriSizov and @Paulb23, as they worked on the Godot 4 version.
TextEdit
#55102Steps to reproduce
Read pixel rect/pos of cursor while cursor is in last column of line
Currently, the result in Godot 3.5.2 is:
textedit-bug.webm
Recorded while using
get_pos_at_line_column
, but MRP usesget_rect_at_line_column
In Godot 4.1.1:
textedit-bug_godot-4.webm
Minimal reproduction project
Godot 3.5.2
textedit-bug.tar.gz
for project migration to Godot 4, change line 24 to
l.text = var_to_str(pos)
. Beware: terrible performance in Godot 4The text was updated successfully, but these errors were encountered: