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

        1. Screen Recording 2023-02-23 at 17.58.44.mov
          12.02 MB
          Łukasz Kosiorowski
        2. Screenshot 2023-02-23 at 16.10.49.png
          65 kB
          Łukasz Kosiorowski
        3. Screenshot 2023-02-23 at 16.11.47.png
          103 kB
          Łukasz Kosiorowski

        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