Open jgw96 opened 7 years ago
From @axsauze on April 17, 2016 13:50
There is a bug for the ion-side-menu when you have expose-aside-when. If a width is provided using a scope variable, the sidebar won't display.
Steps to reproduce:
Code example:
<ion-side-menu side="left" expose-aside-when="large"> <!-- width="$ctrl.getSidebarWidth()" --> <ion-header-bar> <div class="title title-center header-item">Navigation</div> </ion-header-bar> <ion-content> <ion-list> <ion-item nav-clear menu-close ui-sref="home"> Home </ion-item> </ion-list> </ion-content> </ion-side-menu>
Which Ionic Version? 1.x
Quickfix As a quickfix I've added "ionic.trigger('resize');" inside the function that returns the width (i.e. $ctrl.getSidebarWidth(); )
Copied from original issue: driftyco/ionic#6204
From @axsauze on April 17, 2016 14:37
As a quickfix I've added "ionic.trigger('resize');" inside the function that returns the width (i.e. $ctrl.getSidebarWidth(); )
From @axsauze on April 17, 2016 13:50
There is a bug for the ion-side-menu when you have expose-aside-when. If a width is provided using a scope variable, the sidebar won't display.
Steps to reproduce:
Code example:
Which Ionic Version? 1.x
Quickfix As a quickfix I've added "ionic.trigger('resize');" inside the function that returns the width (i.e. $ctrl.getSidebarWidth(); )
Copied from original issue: driftyco/ionic#6204