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
When resizing a RTL with images set with percent size, the image size is correctly updated, but the calculation for wrapped line width for wrapped lines containing an image are not correctly updated.
This causes incorrect line wrapping per the attached videos. Debug rectangles in red are turned on in _draw_line() in order to show the incorrect wrapped line above the text that appears when the control is shrunk in width.
The Update Image button calls update_image and reduces the width by 1% (an arbitrary number), which causes the wrapped lines to be correctly recalculated. Any parameter change with update_image causes the same result.
The correct behavior would be for the wrapping to remain unchanged regardless of width, and for the extra line above the text not to appear.
Godot version
4.2beta3
System information
MacOS Ventura
Issue description
When resizing a RTL with images set with percent size, the image size is correctly updated, but the calculation for wrapped line width for wrapped lines containing an image are not correctly updated.
This causes incorrect line wrapping per the attached videos. Debug rectangles in red are turned on in
_draw_line()
in order to show the incorrect wrapped line above the text that appears when the control is shrunk in width.The
Update Image
button callsupdate_image
and reduces the width by 1% (an arbitrary number), which causes the wrapped lines to be correctly recalculated. Any parameter change withupdate_image
causes the same result.The correct behavior would be for the wrapping to remain unchanged regardless of width, and for the extra line above the text not to appear.
RTL_percent_image_resize_bug.mov
Steps to reproduce
See MRP below.
Minimal reproduction project
RTL_percent_image_resize_bug.zip
The text was updated successfully, but these errors were encountered: