Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

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

Open

Description

@ionitron-bot

Original issue by @MatanYed on 2017-09-01T15:57:48Z

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. ansarikhurshid786 commented on Dec 5, 2018

    @ansarikhurshid786

    I am also facing same issue.

  2. thameurr commented on Oct 28, 2019

    @thameurr

    same problem any help ?

  3. thameurr commented on Oct 28, 2019

    @thameurr

    I fix the problem with this code :
    in the app.component.html or in your menu.html i make 2 menu like this :
    `




    Menu




    <ion-menu-toggle auto-hide="false" *ngFor="let p of appPages">
    <ion-item [routerDirection]="'root'" [routerLink]="[p.url]">
    <ion-icon slot="start" [name]="p.icon">

    {{p.title}}





      <ion-menu type="overlay" side="start" *ngIf="this.platform.isRTL">
        <ion-header>
          <ion-toolbar>
            <ion-title>القائمة</ion-title>
          </ion-toolbar>
        </ion-header>
        <ion-content>
          <ion-list>
            <ion-menu-toggle auto-hide="false" *ngFor="let p of appPages">
              <ion-item [routerDirection]="'root'" [routerLink]="[p.url]">
                <ion-icon slot="start" [name]="p.icon"></ion-icon>
                <ion-label>
                  {{p.title}}
                </ion-label>
              </ion-item>
            </ion-menu-toggle>
          </ion-list>
        </ion-content>
      </ion-menu>
      <ion-router-outlet main></ion-router-outlet>
    </ion-split-pane>
    

    `

    in the .ts file i declare the platform under the constructor like this :
    constructor( public platform: Platform ,)
    and its work fine the side menu change to the end when choosing RTL language :
    to change the direction to RTL i use :
    document.documentElement.dir = 'rtl';

  4. GroupeBEL commented on Feb 27, 2020

    @GroupeBEL

    is there any solution for this problem ? this bug is happening with ionic4/5

  5. AsimNet commented on Jul 10, 2021

    @AsimNet

    same here

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

    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