Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18515

TextEdit cursorRectangle gives unexpected y values with center or bottom vertical alignment is set

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            sampkaar Samppa Kaartinen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes