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

Vertically aligned Texts are not centered when the height of the Text changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.2, 5.1.0 Beta 1
    • Fix Version/s: 5.1.0
    • Labels:
      None
    • Environment:
      Linux, Wayland

      Description

      If a Text element has verticalAlignment: Text.AlignVCenter and the height of the element is changed, the text is not recentered to be in the center of the new bounding box. It only gets recentered if the text is changed as well. (There's most likely some kind of a caching issue at play here.)

      Test case attached.

        Attachments

        1. test.qml
          0.6 kB
          Vesa Halttunen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            andrew.den.exter Andrew den Exter
            Reporter:
            vesuri Vesa Halttunen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes