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

TextArea border loses its adjustment after rotating the screen on android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2
    • Quick: Controls 2
    • None
    • Samsung Galaxy S9 Android 9
    • Android

    Description

      Steps to reproduce:

      1. Open the quick controls gallery example in Qt Creator, https://doc.qt.io/qt-6/qtquickcontrols-gallery-example.html
      2. Open TextArea.qml file in the edit.
      3. Modify the code to be as below (width: pane.availableWidth)) and run the project on Android.
      4. Open TextArea tab
      5. Rotate the device to landscape and get back to portrait.
      TextArea {
                  width: pane.availableWidth
                  anchors.horizontalCenter: parent.horizontalCenter            
                  wrapMode: TextArea.Wrap
                  text: "TextArea\n...\n...\n..."
              } 

      Expected: The border should keep the same position and adjustment.

      Actual: The border moves to the right side of the screen.

      Reproducibility:  100% 

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              lkos Łukasz Kosiorowski
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes