You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When app direction changed to RTL - menu side not changed #12799
Only current fix is to have a variable on top of all of your views (in app.html) called for example allChanged, then when changing to RTL, also emit an event, catch it from the app.component, set allChanged = false, then detectChanges(), and then allChanged = true.
Either that, or a full page reload.
There is a PR open for it, but it will only be resolved after v4.
I think this should be kept open, as it is an important open issue.
The PR is for v3, so not compatible with v4, but I do plan to rework it when the alpha releases with brandy most likely, so it will be working asap. I myself do a full page refresh when changing directions, as it is a very not usual use case.
@mdashiff That won't work if you want to change direction after the menu was initialized, unfortunately.
I have a fix for that, but it is not yet merged
@mdashiff When I said it won't work, I meant fully.
Correct, the main problem is that the animation is created once when the menu is created. My change was to create it whenever the side changes
Your opinion is the standard opinion. There was a fix for v3 that is now closed, I am in continuous contact with the devs on getting this done for v4 beta, hopefully, that will go as planned.
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Activity
AmitMY commentedon Sep 1, 2017
Only current fix is to have a variable on top of all of your views (in
app.html) called for exampleallChanged, then when changing to RTL, also emit an event, catch it from theapp.component, setallChanged = false, thendetectChanges(), and thenallChanged = true.Either that, or a full page reload.
There is a PR open for it, but it will only be resolved after v4.
kensodemann commentedon Sep 1, 2017
Hello! Thank you for opening an issue with us!
Given that we have a workaround and an open PR to fix this after the v4 release, I am going to close this issue for now.
@AmitMY - do you have a number handy for that PR to cross link here?
Thank you for using Ionic
AmitMY commentedon Sep 1, 2017
I think this should be kept open, as it is an important open issue.
The PR is for v3, so not compatible with v4, but I do plan to rework it when the alpha releases with brandy most likely, so it will be working asap. I myself do a full page refresh when changing directions, as it is a very not usual use case.
PR: #11336
kensodemann commentedon Sep 1, 2017
No problem. I can leave it open.
mdashiff commentedon Feb 23, 2018
use this <ion-menu [content]='content' [side]="menuSide"> .....
app.component.ts
public menuSide : string ="right"; the menu side will be changed to right
AmitMY commentedon Feb 23, 2018
@mdashiff That won't work if you want to change direction after the menu was initialized, unfortunately.
I have a fix for that, but it is not yet merged
mdashiff commentedon Feb 24, 2018
@AmitMY isn't it? but for me, it is changed to the right side. but the transition effect alone is coming from left
AmitMY commentedon Feb 24, 2018
@mdashiff When I said it won't work, I meant fully.
Correct, the main problem is that the animation is created once when the menu is created. My change was to create it whenever the side changes
mdashiff commentedon Feb 24, 2018
You are correct @AmitMY when this will fix
3adeling commentedon Mar 13, 2018
Hey guys, Any updates regarding the menu side issue?
3adeling commentedon Mar 14, 2018
IMHO,
this.platform.setDir("rtl", true)should do all the magic in the background. Changing menu's side manually is a little bit confusing.AmitMY commentedon Mar 14, 2018
Your opinion is the standard opinion. There was a fix for v3 that is now closed, I am in continuous contact with the devs on getting this done for v4 beta, hopefully, that will go as planned.
ionitron-bot commentedon Nov 28, 2018
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Thank you for using Ionic!
ionitron-bot commentedon Nov 28, 2018
Issue moved to: ionic-team/ionic-v3#240