longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 578 forks source link

How to open de date picker sliding up? #295

Open rbijkercom opened 7 years ago

rbijkercom commented 7 years ago

How do I set the date picker to open sliding up (above the input field), instead of if sliding down as it does by default?

erkinsergey commented 7 years ago

I have the same question. How to?

jonathanarbely commented 7 years ago

I believe there is no such functionality right now. You can however place it in a container in your config file like so: container: '.foobar' in line 33. Our you can hardcode the position of .date-picker-wrapper in your css. Be aware it's position: absolute; by default.

erkinsergey commented 7 years ago

I understood, thank you. I will do it manual using $('.date-picker-wrapper').offset() .outerHeight() and window sizes.