Ionic-framework: Right side menu not showing when expose-aside-when=large

Created on 1 Oct 2014  路  21Comments  路  Source: ionic-team/ionic-framework

menu-toggle="right" is not working when expose-aside-when="large" is added in ion-side-menus

http://plnkr.co/w0aJln?p=preview2

Most helpful comment

I think the desired behavior is for each side menu to have their own exposeAside that are independent of each other. For instance, I just want the left menu to open when "large" and not the right side.

All 21 comments

Also, adding expose-aside-when to a _right side menu_ will not expose it.
Instead, it leads to the left menu being exposed (even though the expose-aside-when directive is not in it).

Yes, the directive should be related to ion-side-menu, not ion-side-menu s. It should be possible to have both side menus open when working on a large screen

+1

Quick fix to enable toggling the right sidebar is to change line 47667 in the bundle from:

if (isAsideExposed || !self.right.isEnabled) return;

to:

if (!self.right.isEnabled) return;

+1

+1

Not sure if this one is related to #3244 which is ready for RC1.

Still seeing this with the nightly build builds.

http://plnkr.co/edit/Dlpeu10XiESQnBHYiz3z?p=preview

+1 to get this fixed.

+1 any workaround on this?

+1 to get it fix please. really anoying issue

I think it is a HUGE issue for ergonomic purpose for several use cases :

  • when you have both sides menus with only leftMenu expose-aside-when=large, you can't access the right side menu :(
  • when you want your ipad to display side menus + content pane all the time.

Do you have any idea of a duedate for this issue on ionic v1 ?
I think it is not hard to fix it and some guys suggested some pull request.

Hi There, Issue still present.

Hey everyone, got this fixed :) Behavior will look like this:

screenshot 2015-12-06 19 16 32

馃嵒

I think the desired behavior is for each side menu to have their own exposeAside that are independent of each other. For instance, I just want the left menu to open when "large" and not the right side.

+1 doorty, the current fix exposes both the left and right menu if one of them has expose-aside-when set.

In my opinion this fix also reopens #3352 as the element's width doesn't get updated after an orientation change (https://github.com/driftyco/ionic/commit/a98f88ba6c1715459e5ccf0a21237255417672f3#diff-7f8a45a06c53978f6e2571220899a0eaR178).

fixed:

in the file: ionic.bundle.js
change the code:

setTranslateX: ionic.animationFrameThrottle(function(amount) {
var xTransform = content.offsetX + amount;
$element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + xTransform + 'px,0,0)';

change it to be:

setTranslateX: ionic.animationFrameThrottle(function(amount) {
var xTransform = content.offsetX + amount;
if (content.offsetX > 0)
{
      xTransform = amount;
}
$element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + xTransform + 'px,0,0)';

I know this is not good solution but I had to.

+1 for a fix

+1

above fix is not working any help on this is highly appreciated

Was this page helpful?
0 / 5 - 0 ratings