← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1630167] Re: SlotsLayout with Column as mainSlot: endless loop when resizing view so that Column has negative width

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: Triaged => In Progress

** Also affects: ubuntu-ui-toolkit (Ubuntu RTM)
   Importance: Undecided
       Status: New

** Also affects: canonical-devices-system-image
   Importance: Undecided
       Status: New

** Changed in: ubuntu-ui-toolkit (Ubuntu RTM)
     Assignee: (unassigned) => Andrea Bernabei (faenil)

** Changed in: ubuntu-ui-toolkit (Ubuntu RTM)
   Importance: Undecided => Medium

** Changed in: ubuntu-ui-toolkit (Ubuntu RTM)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, 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 Canonical System Image:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  In Progress
Status in ubuntu-ui-toolkit package in Ubuntu RTM:
  In Progress

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/canonical-devices-system-image/+bug/1630167/+subscriptions


References