Skip to content

When app direction changed to RTL - menu side not changed #12799

Closed

Description

@MatanYadaev

Resources:
Before submitting an issue, please consult our troubleshooting guide (http://ionicframework.com/docs/troubleshooting/) and developer resources (http://ionicframework.com/docs/developer-resources/)

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
When i change app direction to rtl, the menu is in the same side

Expected behavior:
After changing app direction to rtl, change menu side to the opposite side

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages: (/home/matanyed/Dev/grame/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.6.0

System:

    Android SDK Tools : 25.2.5
    Node              : v6.11.1
    npm               : 3.10.10 
    OS                : Linux 4.4

Activity

  1. AmitMY commented on Sep 1, 2017

    @AmitMY
    Contributor

    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.

  2. kensodemann commented on Sep 1, 2017

    @kensodemann
    Contributor

    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

  3. AmitMY commented on Sep 1, 2017

    @AmitMY
    Contributor

    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

  4. kensodemann commented on Sep 1, 2017

    @kensodemann
    Contributor

    No problem. I can leave it open.

  5. mdashiff commented on Feb 23, 2018

    @mdashiff

    use this <ion-menu [content]='content' [side]="menuSide"> .....

    app.component.ts

    public menuSide : string ="right"; the menu side will be changed to right

  6. AmitMY commented on Feb 23, 2018

    @AmitMY
    Contributor

    @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

  7. mdashiff commented on Feb 24, 2018

    @mdashiff

    @AmitMY isn't it? but for me, it is changed to the right side. but the transition effect alone is coming from left

  8. AmitMY commented on Feb 24, 2018

    @AmitMY
    Contributor

    @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

  9. mdashiff commented on Feb 24, 2018

    @mdashiff

    You are correct @AmitMY when this will fix

  10. 3adeling commented on Mar 13, 2018

    @3adeling

    Hey guys, Any updates regarding the menu side issue?

  11. 3adeling commented on Mar 14, 2018

    @3adeling

    IMHO, this.platform.setDir("rtl", true) should do all the magic in the background. Changing menu's side manually is a little bit confusing.

  12. AmitMY commented on Mar 14, 2018

    @AmitMY
    Contributor

    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.

  13. ionitron-bot commented on Nov 28, 2018

    @ionitron-bot

    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!

  14. ionitron-bot commented on Nov 28, 2018

    @ionitron-bot

    Issue moved to: ionic-team/ionic-v3#240

  15. locked and limited conversation to collaborators on Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions