Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.2
-
None
-
Windows desktop
Description
1. Run attached qml-file.
2. click on the textEdit (within blue rectangle) and type some letters. "Cursor rect.y" shows curson y posision taken from TextEdit.cursorRectangle.
3. click "Switch VAlignment", vertical alignment is set to center (cursor y does not change yet)
4. type some letter and see cursor y value, which is -143??
5. click "Switch VAlignment", vertical alignment is set to bottom
6. type some letters and see cursor y value, which is -287??
The specification says the following for TextEdit.cursorRectangle: "The rectangle where the text cursor is rendered within the text edit."
Based on this it would be expected that the cursorRectangle.y would have some positive value since the origo is in the top-left corner of the TextEdit, thus the reported y value, as it is negative, implies that it is not within TextEdit.