On Thu, Sep 26, 2013 at 8:01 PM, Sam Bull <[email protected]> wrote:

> I'm having a persistent problem getting elements to not overlap when
> using a ListView.
>
> The code sample is below. The first thing, is that the button sits at
> the top overlapping the first element. But, if I add a second element to
> the model, it doesn't appear. Which might be because it's overlapping
> the first element.
>
> I have tried removing the Column, and moving the button out of the
> ListView and into the column. The results vary slightly, but none of
> them result in the button being at the bottom of the column.
>
> I get the feeling the ListView thinks it's height is 0, and all it's
> elements. The delegate is a custom thing wrapped in a ListItem.Empty.
>

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.

HTH,

 Olivier
-- 
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