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

Inconsistent behaviour of TextArea with horizontalCenter between different platforms (Gallery example)

XMLWordPrintable

    • Android, iOS/tvOS/watchOS
    • 9025ea98cad57696aeee41a614cf21e9938aa527 (qt/qtdeclarative/dev) 4945ce45181f8d67e42801fbb3064b7435d3e3da (qt/qtdeclarative/6.2)

      There is a difference between Android and other platforms, but I'm not sure which behavior is the correct one. 

       

      Steps to reproduce:

      1. Run 'gallery' example project.

      2. Open 'TextArea' page from the drawer. 

      3. Place the cursor after 'TextArea' word and start deleting the letters

      4. Observe that when 'Area' is removed and you start deleted characters from 'Text' word the entire area is centered on iOS/MacOS/Windows, it's not centered on Android.

       

      Expected: I assume the area should not be centered if there is a setting "anchors.horizontalCenter: parent.horizontalCenter", but did not find anything about that in the documentation.

       

      Actual: See the attached videos for more details. On Android text gets centered, it does not work like that on other platforms.

       

       

       

        1. text-area-android.mp4
          1.54 MB
          lukasz.kosiorowski
        2. text-area-macos.mov
          785 kB
          lukasz.kosiorowski
        For Gerrit Dashboard: QTBUG-91109
        # Subject Branch Project Status CR V

            hurlevent Oliver Eftevaag
            lukasz.kosiorowski lukasz.kosiorowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes