-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Using popups with dir="rtl" messes up rendering on Safari, iPhone/iPad and Chrome Mobile #5440
Comments
Temporary workaround - place popup inside the page, but outside content, remove "rtl" from body or any anscestor divs, and use this rule: div[data-role="header"], div[data-role="content"], (oh, place text inside popup in <p> elements) |
The problem is the combination of Two ways to resolve your issue with custom CSS. Set code: http://jsbin.com/ehowik/13/edit (also Closing the issue as resolved. |
Thanks Jasper. I will try it out. However, your solution is still somewhat of a workaround. In my opinion, Jquery Mobile should be able to work well with rtl direction. I suggest changing the popup logic such that if rtl is set, it'll use Alternatively, let's at least change the documentation on PopUp in jquerymobile.com to indicate the issue. Could you please reopen the bug? Thanks, |
The CSS in your comment is same as the first solution I mentioned, but you would have to negate the Currently we set We do want JQM to work well with "rtl". See #5167. However, your issue is not just caused by using "rtl", but using it in combination with a I think it's best for now to not make changes in the framework CSS or documentation, but wait the outcome of #5167. I will add a comment there about your issue. Note: If we decide to make changes in the framework CSS to fix this issue we have to look at the following issues and commit messages. |
@uGoMobi just seen your comment (apparently I wasn't getting notifications for this issue). Thanks for your thorough reply! |
For 1.4 I reviewed our CSS to hide elements while keeping them accessible. All the -9999px off sets are gone now, so the issue with |
When adding a popup to a page, if the popup div inherits or otherwise assigned 'direction: rtl', for instance by having dir="rtl" on <body>, the default view on Safari is a blank page (the page is on the right but popup directs focus to the left somehow, even when it's inactive).
On Chrome Mobile, weirder things happen - text boxes don't get filled, collapsibles won't open, etc.
To reproduce see this simple file: https://dl.dropbox.com/u/33307998/safari_chrome_mobile_repro.html
Open it in Safari, then remove the "rtl" property and open it again.
The text was updated successfully, but these errors were encountered: