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

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0
    • 5.0.2, 5.1.0 Beta 1
    • None
    • 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

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

        Activity

          People

            andrew.den.exter Andrew den Exter
            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