blackberry / bbUI.js

BlackBerry UI look and feel JavaScript toolkit for WebWorks
Apache License 2.0
312 stars 192 forks source link

Context Menu kills Screen Menu #909

Closed bert2002 closed 11 years ago

bert2002 commented 11 years ago

Hi,

i implemented the menu and the context menu in my application. When I open the application the menu shows fine when I slide down from the top, but after I opened the context-menu the "swipe menu" is not shown any more

following code:

        <div data-bb-type="menu">
          <div data-bb-type="menu-item" data-bb-img="images/bbui/bbm.png" onclick="bb.pushScreen('this.htm', 'this');">This</div>       
        </div>

        <div id="contextoptions" data-bb-type="context-menu">
          <div data-bb-type="action" data-bb-img="/images/bbui/bbm.png" onclick="That(document.getElementById('contextoptions').menu.selected.selected.getAttribute('id'));">That</div>
        </div>

Build with the latest bbui and sdk on macosx.

Thanks,

bert

glasspear commented 11 years ago

Curious. The application menu won't appear/trigger while the context menu is open, but it should work once the context menus are closed.. I wonder if the application menu isn't re-enabling itself properly when the context menu is closed.

Are you seeing this in Ripple or on device?

bert2002 commented 11 years ago

Unfortunately it is not working after I closed it. This happens on a Z10 with 10.1.0.273

glasspear commented 11 years ago

I will have a look at it this week and see what if I can figure out where it is failing.

bert2002 commented 11 years ago

Many Thanks.

glasspear commented 11 years ago

When you have this issue do you see any errors via web inspector? Do you have the most up-to-date context menu plug-in in your ext/ directory?

I can't replicate this at the moment, so I am hoping there might be some other clues.

bert2002 commented 11 years ago

I see see some updates from tneil. Let me update my local repo and I will get back to you if it is fixed.

bert2002 commented 11 years ago

Something strange. I think their were some structure changes. I am using the context menu from bbui [1] and apparently it the extension got renamed to bbui [2]. I updated my ext/ Framework and replaced ui.contextmenu with bbui in my config.xml. It is building and finding the extension, but the application just shows a black screen. Yesterday I got 10.1.0.2312 pushed from my carrier, but I dont think that this is the problem. I will roll back to my previous ui.contextmenu and see how this works. Updated bbui as well.

[1] - https://github.com/blackberry/bbUI.js/wiki/Context-Menus [2] - https://github.com/blackberry/bbUI.js/tree/master/pkg/bb10

bert2002 commented 11 years ago

so I had to revert anything and back to the first status. I will enable the web inspector to have a look, but will be on vacation...

UPDATE: I dont get it working again with the new OS version. I will leave it after my vacation.

denniskis commented 11 years ago

I have the same issue and can't fix it.

edit: please ignore. The problem was in the wrong toolkit initialization. I'm wondering why it was done so in your map sample app which I took as a base? Had to spend a day to find out a root cause.