Open NirmalKumarYuvaraj opened 1 week ago
/azp run
/rebase
/azp run
/rebase
/azp run
/azp run
Looks like this changed the behavior of the placeholder a tad. Looks like it is moved down a little and is being cut off a little bit on the top
Original is on the left, the diff is in the middle, and the new behavior from this PR is on the right
Issue Details
Sometimes, the editor cursor moves below the keyboard frame, causing it to render incorrectly. Once the editor content exceeds the editor's size, the cursor aligns properly above the keyboard frame.
Root Cause
The content offset of UITextView is set without consideration of keyboard frame. Causing the content to remain center even when the keyboard is open. As a result, the cursor goes below the keyboard frame.
Description of Change
The content offset of UITextView should be recalculated based on the keyboard frame value . We should check if the cursor's bottom position goes below the keyboard; we have to update the y position of the content offset based on the difference between the cursor's bottom position and the keyboard frame's top position.
Validated the behaviour in the following platforms
Issues Fixed
Fixes #24977
Output