Ticket #7128 (open bug)
Datepicker: image DOM position should not change in RTL mode
| Reported by: | scott.gonzalez | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.11.0 |
| Component: | ui.datepicker | Version: | 1.8.10 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
See forum post
Change History
comment:2 Changed 10 months ago by scott.gonzalez
@mrozik The point of the forum post was to point out that the isRTL setting should not affect the location of the button. The location of the button will be controlled by the content's dir attribute. It doesn't matter what locale the calendar is in, the layout of the widget within the flow of the page should follow the direction of the surrounding content.
comment:4 Changed 7 months ago by mikesherov
- Status changed from new to open
confirmed: Here's where to make the change, as scott points out: https://github.com/jquery/jquery-ui/blob/a3f1a34d3b997550a5a8cf4c630e6580cd37cde5/ui/jquery.ui.datepicker.js#L233
Note: See
TracTickets for help on using
tickets.


I created example with DIR="RTL" attribute on HTML tag and isRTL: false config in Datepicker:
http://jsfiddle.net/v5VHE/2/
It shows that even if isRTL config on Datepicker is set to false, the dates (and all page) are displayed correctly for RTL direction. Maybe we should consider that problem lies in after() and before() methods, because they don't check DIR attribute.