Fixed #461 - Calendar misplaced layout if more than one month is shown

pull/642/head
Cagatay Civici 2020-09-08 14:26:26 +03:00
parent 8f9782c79c
commit d8488e9dee
34 changed files with 85 additions and 83 deletions

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #93cbf9;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #a7d8a9;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #ffe284;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #cf95d9;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #e3f3fe;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem rgba(136, 60, 174, 0.5);
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.1rem white;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.1rem white;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.1rem white;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.1rem white;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2.5rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2.5rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2.5rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2.5rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -201,7 +201,7 @@
box-shadow: none;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #8dcdff;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #8dcdff;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #c2e9d8;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #8dcdff;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #e4e9ec;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #a6d5fa;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #b7e0b8;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #ffe69c;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 0.2rem #df9eea;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #93cbf9;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #a7d8a9;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #ffe284;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -177,7 +177,7 @@
box-shadow: 0 0 0 1px #cf95d9;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 1;
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;

View File

@ -5,6 +5,7 @@
<transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayEnterComplete" @leave="onOverlayLeave">
<div ref="overlay" :class="panelStyleClass" v-if="inline ? true : overlayVisible" :role="inline ? null : 'dialog'" :aria-labelledby="ariaLabelledBy">
<template v-if="!timeOnly">
<div class="p-datepicker-group-container">
<div class="p-datepicker-group" v-for="(month,groupIndex) of months" :key="month.month + month.year">
<div class="p-datepicker-header">
<slot name="header"></slot>
@ -57,6 +58,7 @@
</table>
</div>
</div>
</div>
<div class="p-monthpicker" v-if="view === 'month'">
<span v-for="(m,i) of monthPickerValues" :key="m" @click="onMonthSelect($event, i)" @keydown="onMonthCellKeydown($event,i)"
class="p-monthpicker-month" :class="{'p-highlight': isMonthSelected(i)}" v-ripple>
@ -2229,7 +2231,7 @@ export default {
}
/* Multiple Month DatePicker */
.p-datepicker-multiple-month {
.p-datepicker-multiple-month .p-datepicker-group-container {
display: flex;
}