|
|
What steps will reproduce the problem?
1. Create a new DatePicker with new DatePicker(input, {draggable: false});
What is the expected output? What do you see instead?
The DatePicker modal window should not be draggable. It is still draggable.
Please provide any additional information below.
To get the correct behavior, you need:
new DatePicker(input, { stickyWinOptions: { draggable: false} } )
Suggested fix:
1.On line 6174 of clientcide-trunk-805.js (I downloaded everything, not including mootools
core/more), the draggable option of StickyWin is set to true by default. This should be changed
to the draggable option of DatePicker:
/* BAD */ stickyWinOptions: {
draggable: true,
dragOptions: {},
...
/* GOOD */ this.draggable: true,
stickyWinOptions: {
dragOptions: {},
...
2. The initialize() function never refers to the draggable option of DatePicker. Just add a line there
to set the StickyWin's draggable option to the draggable option passed in to DatePicker:
this.options.stickyWinOptions.draggable = this.draggable;
If possible, can you post an example of this where we can view it? If so, please paste in the url
below.
http://nicsdad.com/bugs/datepicker.html
|