We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e797f8b + 8dc6d02 commit 3504cd0Copy full SHA for 3504cd0
src/VueDatePicker/components/DatepickerMenu.vue
@@ -251,6 +251,8 @@
251
const inputRect = props.getInputRect();
252
if (inputRect?.width < calendarWidth?.value && inputRect?.left <= (menuRect?.left ?? 0)) {
253
return `${inputRect?.width / 2}px`;
254
+ } else if (inputRect?.right >= (menuRect?.right ?? 0) && inputRect?.width < calendarWidth?.value) {
255
+ return `${calendarWidth?.value - inputRect?.width / 2}px`;
256
}
257
return '50%';
258
});
0 commit comments