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
Developer
strobejb
Posts: 276
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: Beta 4 - Application Menu Issue

I might have found a workaround for this issue. Try putting your Sheet in a ComponentDefinition, and then dynamically creating the sheet whenever you want to view it. Something like:

 

/* define the sheet */

attachedObjects: [

 

 ComponentDefinition {

    id: mySheetDefinition

    Sheet {

            // your content here

     }

 

  }

]

 

 

/* display the sheet */

var mySheet = mySheetDefinition.createObject();

 

mySheet.open();

 

 

I'm still testing some other issues, but it appears to work OK, and my application menu remains functional this way

Please use plain text.
New Contributor
BasicDon
Posts: 3
Registered: ‎12-01-2012
My Device: None, BB10 Simulator at least while BB10 is not released.

Re: Beta 4 - Application Menu Issue

I did the same workaround in my application. It works fine.
The only difference is that I also setting a parent for a sheet to avoid any memory leaks.
Please use plain text.