Search and Top Navigation
#7128 open bug ()
Opened March 18, 2011 12:50AM UTC
Last modified June 24, 2014 11:51PM UTC
Datepicker: image DOM position should not change in RTL mode
Reported by: | scottgonzalez | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.8.10 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
See forum post
Attachments (0)
Change History (5)
Changed July 16, 2012 03:58PM UTC by comment:1
Changed July 16, 2012 05:02PM UTC by comment:2
@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.
Changed October 11, 2012 02:43PM UTC by comment:3
milestone: | 1.9.0 → 1.11.0 |
---|
Changed October 18, 2012 12:18AM UTC by comment:4
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
Changed June 24, 2014 11:51PM UTC by comment:5
milestone: | 1.11.0 → none |
---|
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.