Fixed text editor drawing if smooth scrolling is disabled.
Fixed text editor drawing if smooth scrolling is disabled.

Fixes #38778

(cherry picked from commit b048eb05ad978ba5e0ed93f3d0488d7fe355df5c)

ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot