info for my future self: 
I investigated this bug a few days ago, when Trevinho first reported it 
directly to me.

It turns out the loop is triggered when the view is resized so that the
column gets a *negative* width.

At that point you see columns height going 0 to 5 (which is rectangle's
height) and back to 0, in a loop, and width going -X to 0 to -X again.

** Summary changed:

- When SlotsLayout uses a Column as mainSlot and view is resized horizontally 
an inifinite resize loop starts
+ SlotsLayout with Column as mainSlot: endless loop when resizing view so that 
Column has negative width

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1630167

Title:
  SlotsLayout with Column as mainSlot: endless loop when resizing view
  so that Column has negative width

Status in ubuntu-ui-toolkit package in Ubuntu:
  Triaged

Bug description:
  With a simple code such as

  import QtQuick 2.4
  import Ubuntu.Components 1.3
  import QtQuick.Window 2.0

  Window {
      SlotsLayout {
          id: slotsLayout
          onHeightChanged: print("SlotsLayout height",height)
          width: parent.width
          mainSlot: Column {
              onHeightChanged: print("COlumn height",height)
              onWidthChanged: console.log("Column width", width)

              Rectangle {
                  id: rect
                  width: parent.width
                  onWidthChanged: console.log("RECT WIDTH", width)
                  onHeightChanged: console.log("RECT HEIGHT!", height)
                  height: 5
              }

          }
      }
  }

  
  Or something similar (http://archive.is/N0jnM), when resizing the view 
horizontally to only use few pixels, an infinite resizing loop starts and the 
view freezes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1630167/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to