Bootstrap: Table-Responsive issue with RTL on iOS Webkit

Created on 30 Jan 2014  路  6Comments  路  Source: twbs/bootstrap

If { direction:rtl;} style is added to table-responsive class, the table wont scroll on iOS devices.

On iOS 6 the table scrolls but there are glitches and missing text and on iOS 7 the table never scrolls at all.

confirmed css

Most helpful comment

There is a workaround to fix this;
I've added the below 2 lines to my CSS file

.table-responsive {
  direction: ltr;
}
.table-responsive > table {
  direction: rtl;
}

In addition, you need to change table scroll direction using JS

$(document).ready(function(){
  $('.table-responsive').scrollLeft(9999);
});

All 6 comments

We don't technically support RTL in general currently. It's on the long-term roadmap though.

None of the .table-responsive or .table styles seem direction-specific to me. Browser bug perhaps?

Both chrome and safari act the same, yet desktop versions act normally.

There is a workaround to fix this;
I've added the below 2 lines to my CSS file

.table-responsive {
  direction: ltr;
}
.table-responsive > table {
  direction: rtl;
}

In addition, you need to change table scroll direction using JS

$(document).ready(function(){
  $('.table-responsive').scrollLeft(9999);
});

the solution is :

@media (max-width: 767px){
.table-responsive {
direction: ltr;
}
}

thanks @geosalameh - it worked!

Thank you so much @geosalameh it worked perfectly

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kamov picture kamov  路  3Comments

tiendq picture tiendq  路  3Comments

IamManchanda picture IamManchanda  路  3Comments

iklementiev picture iklementiev  路  3Comments

alvarotrigo picture alvarotrigo  路  3Comments