vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

Set opening direction?

Open T0miii opened this issue 7 years ago • 13 comments

Is there a way to tell the datepicker in what direction it should open? I encounter this problem: image

T0miii avatar Nov 07 '17 14:11 T0miii

No... I used to measure the available space then open above or below but that messed up the SSR users. Might be a nice addition to pass this in as a prop though...

charliekassel avatar Nov 07 '17 15:11 charliekassel

could i do this with the wrapper class?

T0miii avatar Nov 08 '17 06:11 T0miii

This is a nice feature that I need just now

khflab avatar Nov 09 '17 02:11 khflab

wow, anyone has done this feature?

ghost avatar Nov 23 '17 10:11 ghost

There is also a problem when the input is close to the right edge of the window... then only the half calendar is shown... This is a big problem for responsive design

d3bgger avatar Mar 07 '18 15:03 d3bgger

Please consider implementing this. It's possible to get some of the way there with CSS, but the top edge jumps up and down around because the day, month, and year views are different heights.

jadell avatar Nov 01 '18 20:11 jadell

I too would like this feature. I've got a datepicker near the bottom of the page, and it adds a scrollbar when opened. Top/right/bottom/left would be great :+1:

briano-jabico avatar Feb 06 '19 09:02 briano-jabico

No... I used to measure the available space then open above or below but that messed up the SSR users. Might be a nice addition to pass this in as a prop though...

@charliekassel i've tried to look in the commits to find where this code was removed and replicate it but I can't. Could you possibly point it out?

robjbrain avatar Feb 07 '19 12:02 robjbrain

This is the most rated Vue Datepicker component that I have found so far, which is why I cannot believe that opening direction or position has not been resolved. Component still opens off screen. I will add it to my to do list, but it's not a high priority to me, since I'm pretty sure I can just find another component that has this built-in already.

Screenshot 2019-05-07 09 58 07

joelhickok avatar May 07 '19 16:05 joelhickok

Maybe add an option to display datepicker in the modal like https://mariomka.github.io/vue-datetime/

sombatos avatar Aug 20 '19 19:08 sombatos

I also need this auto detect feature because I am currently experiencing the same problem, for now I solved it with css overide

.vdp-datepicker__calendar { width: 230px !important; }

HendraPB avatar Oct 01 '19 18:10 HendraPB

It's working, just use this css. .vdp-datepicker__calendar { bottom: 100%; }

hasibweb avatar Apr 03 '21 10:04 hasibweb

This is the most rated Vue Datepicker component that I have found so far, which is why I cannot believe that opening direction or position has not been resolved. Component still opens off screen. I will add it to my to do list, but it's not a high priority to me, since I'm pretty sure I can just find another component that has this built-in already.

Screenshot 2019-05-07 09 58 07

If anyone still have issues with that, this simple css helped me a lot.

.vdp-datepicker__calendar { right: 0; }

bezner avatar Aug 27 '21 16:08 bezner