Skip to content

Use "top: -9999px" to hide elements instead of "left: -9999px" please! #1413

@neopersia

Description

@neopersia

Hi,

I love the chosen plugin but adding the "chzn-rtl" class to every select element in a right to left page is really ridiculous! It's even more annoying when it comes to multilingual pages, in which case you have to add the class pragmatically for every select element!

Why not using the "top" property instead? it's a lot simpler and it won't matter if the page is rtl or ltr.
For the rest of the related css rules, adding a "rtl" class or even a standard dir="rtl" attribute to the body or html tag can render the need for "chzn-rtl" obsolete. That's the way it's handled in the dojotoolkit and I had no problems with that approach ever!

I could start writing codes right away but I've seen this argument in comments for some bugs here and I thought there might be a reason it's been ignored so far.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions