Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
tim1967
Posts: 24
Registered: ‎08-03-2014
My Device: Q10
Accepted Solution

Problem with space above ListView

Hi,

 

My application contains a few dialogs and pages created in qml which contain listviews. My problem is that all these listviews don't start at the top of my page/dialog. There is a black space before the listview even though I have tried using absolutelayout and setting to 0,0 and have tried setting topMargin and topPadding to 0. No container has a background of #000000 in my qml file.

 

I don't have this problem if I don't use a ListView in a dialog so it must be to do with ListView.

 

Can anybody tell me what's happening and how to fix it please?

 

Tim

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Problem with space above ListView

you could try a negative margin on the outer container
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
tim1967
Posts: 24
Registered: ‎08-03-2014
My Device: Q10

Re: Problem with space above ListView

topPadding: -50 sorted it, thanks Simon.