Opened 12 years ago
Last modified 9 years ago
#7128 open bug
Datepicker: image DOM position should not change in RTL mode
Reported by: | Scott González | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.8.10 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
See forum post
Change History (5)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
@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:3 Changed 11 years ago by
Milestone: | 1.9.0 → 1.11.0 |
---|
comment:4 Changed 11 years ago by
Status: | new → 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
comment:5 Changed 9 years ago by
Milestone: | 1.11.0 → none |
---|
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.