On Thursday 26 September 2013 19:46:48 Sam Bull wrote:
> On Thu, 2013-09-26 at 20:05 +0200, Olivier Tilloy wrote:
> > If you don’t explicitly set a height for the ListView, indeed its
> > height is 0.
> > Column doesn’t resize its children, it merely positions them.
> 
> OK, so, how do I put the send button below the ListView, if I don't know
> the size ahead of time? Do I have to manually set the height of the
> ListView with some Javascript, seeing as I won't know how many
> components are in the ListView?

If the ListView should always be the same height as the total height of all 
the items, you probably want to use the Column + Repeater instead of the 
ListView

Column {
  height: childrenRect.contentHeight
  Repeater {
    model: payments
    delegate: SendComponent {}
  }
  Button {
    text: "click me"
  }
}


-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to