-
Notifications
You must be signed in to change notification settings - Fork 212
[BUG] Expand to menu item hides all other items #144
Comments
Thanks for spotting this. |
I've tracked down the cause to be the "visibility" attribute of the menu item siblings + the div containing the back button (.backItemClass). If I set them to "Visible" they are displayed, and I also have to reset the width of the target menu element (it's not filling the width of the menu 100%). |
Hi, is there an ETA on this fix? Thanks, |
Hi Andreas, |
+1 Thanks for the update @adgsm. |
hm... I just had a quick look again on how did you produce such behaviour. in other words if you have menu with title 'Rambler' following will expand to it.
|
Hi, You should be using instead of finditemsbyname method. Regards
|
Hi, yes I just deleted my comment when I realized that this command does what I want:
|
After postback I'd like to re-open the menu and show the current page I am on in the menu. According to the spec, this is done using 'expand' (see description below).
Even though the actual menu item is found and shown in the menu, all other menu items disappear.
To reproduce the problem, go to this demo page:
http://multi-level-push-menu.make.rs/demo/covermode/covermode.html
Open console and run this script:
$( '#menu' ).multilevelpushmenu( 'expand' , $( '#menu' ).multilevelpushmenu( 'finditemsbyname' , 'Rambler' ).first() );
This is what the spec says:
$( '#menu' ).multilevelpushmenu( 'findmenusbytitle' , 'Mobile Phones' );
and then invoke expand method with desired menu level object (e.g. if we have several menu objects with title 'Mobile Phones' but we want to expand the first one)
var $phonemenu = $( '#menu' ).multilevelpushmenu( 'findmenusbytitle' , 'Mobile Phones' ).first();
and then
$( '#menu' ).multilevelpushmenu( 'expand' , $phonemenu );
The text was updated successfully, but these errors were encountered: