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
Regular Contributor
skyhawk92
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
My Carrier: Simobil
Accepted Solution

DropDown menu hides behind elements

Hi,

 

I have 2 Containers one right after another. DropDown menu is in the first one. When I want to select something from DropDown menu, it hides behind elements in the second Container.  How can I bring that DropDown menu to the front, when seecting items ?

Please use plain text.
Regular Contributor
skyhawk92
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
My Carrier: Simobil

Re: DropDown menu hides behind elements

Also DropDown stretches borders of the Container. How to make them fixed and still see DropDown menu over ?

Please use plain text.
Developer
Curahee
Posts: 215
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: DropDown menu hides behind elements

In my application I also noticed that when I didn't use a ScrollView the dropdown list did dissapear after the elements below the dropdown. So when I used a ScrollView around all the elements it was solved.

 

A dropdown in cascades infact don't come on top of the elements. It just enlarges itself and all the elements below the dropdown get pushed to the bottom. When the bottom is reached, the elements below the dropdown can't be pushed more, so the dropdown will be showed behind the elements.

When you use a scrollview, the elements below the dropdown can get pushed as far is needed because the viewport is not limited to the screen.

 

Hopefully this was a little bit helpfull.

______________________________________________________
beRail: BlackBerry World - GitHub
Mobile Vikings: BlackBerry World - GitHub
Park in Brussels: BlackBerry World
Please use plain text.
Regular Contributor
skyhawk92
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
My Carrier: Simobil

Re: DropDown menu hides behind elements

Yup   ScrollView worked, thanks.

Please use plain text.
Trusted Contributor
smjose
Posts: 134
Registered: ‎04-12-2013
My Device: BB Z10
My Carrier: Telenor

Re: DropDown menu hides behind elements

If you are still around, how exactly did you do it? I was tryin the same in my app and it doesnt work for me.. :smileysad:  

Please like this if you are answered.
Please use plain text.
Regular Contributor
skyhawk92
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
My Carrier: Simobil

Re: DropDown menu hides behind elements

[ Edited ]

I had a Container for whole Page and a ScrolView was part of that container, among other elements and containers.

 

Structure was something like this:

Page {
......
   Container{
   ......
       ScrollView{
           Container{
           }
       }
   }
}

 

Please use plain text.
Trusted Contributor
smjose
Posts: 134
Registered: ‎04-12-2013
My Device: BB Z10
My Carrier: Telenor

Re: DropDown menu hides behind elements

Is it like, if I have a container and inside that I have three dropdown boxes and 2 text fields, do I need to use scrollview with each element? or just one scrollview for the container? 

Page{

  Container{
     ScrollView{

Container{...

ScrollView{
      ImageView{...}
        }
ScrollView{
       Dropdown{....}
     }


}

}
}

 Is it something like this?

Please like this if you are answered.
Please use plain text.
Regular Contributor
skyhawk92
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
My Carrier: Simobil

Re: DropDown menu hides behind elements

[ Edited ]

Hmm, I'm not sure, but I think one is enough.   With this structure that you pasted, does it work ?

Please use plain text.
Developer
peter_strange
Posts: 19,599
Registered: ‎07-14-2008
My Device: Not Specified

Re: DropDown menu hides behind elements

One ScrollView is enough in this case.  But you have to use a layout Manager with in it whose size can change dynamically for things like DropDown. 

Please use plain text.
Trusted Contributor
smjose
Posts: 134
Registered: ‎04-12-2013
My Device: BB Z10
My Carrier: Telenor

Re: DropDown menu hides behind elements

hmm.. I used dock laytout in these.. would it do? but still it dint work.. :smileysad: 

Please like this if you are answered.
Please use plain text.