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

WebAssembly - App "Window" moves outside of visible area

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.3, 6.9.0 Beta3, 6.10.0 FF
    • 6.8.1
    • None
    • Windows 11 23H2 (22631.4541)
      Chrome 131.0.6778.109
      emsdk 3.1.56
      cmake 3.29.2
      ninja 1.12.1
    • WebAssembly
    • 7dd94d74e (dev), 43eb0dbd3 (6.9), b6faeb814 (6.8)

    Description

      In this gif you can see the complete browser window with the app running.
      The purple frame is the app window, its moves outside the visible area on inputing text.

      In my actual application I managed to move the window without writing more than fits into the textfield, but I was not able to reproduce that.

      Following example reproduces the problem:

      import QtQuick
      import QtQuick.Controls
      
      Window {
          visible: true
          height: 600
          width: 800    Rectangle{
              anchors.fill: parent
              border.width: 5
              border.color: "magenta"
              Row{
                  anchors.top: parent.top
                  anchors.right: parent.right
                  TextField{
                      placeholderText: "Field 1"
                  }
                  TextField{
                      placeholderText: "Field 2"
                      focus: true
                  }
              }
              TextArea{
                  anchors.centerIn: parent
                  text: "**How to reproduce:**\n1. Write `Field 2` full\n2. Focus `Field 1`\n3. Focus `Field 2` write more into it"
                  textFormat: TextArea.MarkdownText
                  readOnly: true
              }
          }
      } 

      How to reproduce:

      1. Write Field 2 full
      2. Focus Field 1
      3. Focus Field 2 write more into it

      Attachments

        Issue Links

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

          Activity

            People

              evenandersen Even Oscar Andersen
              bitfactory Markus Schoder
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes