angular-material-components icon indicating copy to clipboard operation
angular-material-components copied to clipboard

Styles messed up after opening angular material calendar.

Open MBolin-ADCIP7F opened this issue 3 years ago • 6 comments

After opening the angular material calendar, the next time the date picker is opened the styles are all messed up.

https://imgur.com/a/nGDz4JD

MBolin-ADCIP7F avatar Nov 10 '22 19:11 MBolin-ADCIP7F

I have the same problem

SwetlanaZhukian avatar Nov 14 '22 09:11 SwetlanaZhukian

Is there any bug opened for this? Seems like a big issue if you cannot use it with a material calendar?

MBolin-ADCIP7F avatar Nov 14 '22 13:11 MBolin-ADCIP7F

I had this problem. This is my fix.

Add this css to styles.css(scss)

button.mat-calendar-body-cell { position: absolute; height: 100%; }

td.mat-calendar-body-cell { position: relative; height: 0; }

vitiok123 avatar Nov 17 '22 19:11 vitiok123

I'm getting this issue as well. I created a stackblitz to replicate it here: https://stackblitz.com/edit/angular-y3ta8a-hrrtb4?file=src/app/datepicker-overview-example.html

It seems the issue only appears if you open the datetime picker before opening the material date picker. If you open the material one first then you don't see the issue


I had this problem. This is my fix.

Add this css to styles.css(scss)

button.mat-calendar-body-cell { position: absolute; height: 100%; }

td.mat-calendar-body-cell { position: relative; height: 0; }

These styles do seem to fix the date buttons but the arrow next to the month picker is also doing something strange which affects the mat date picker as well. image

It usually looks like this chrome_OK69PVLlSZ

nocturnalpie avatar Dec 29 '22 11:12 nocturnalpie

@nocturnalpie You can look in this issue: https://github.com/h2qutc/angular-material-components/issues/269. There are some styles to fix style issues for opening mat-calendar and arrow-styles

SchraderR avatar Jan 20 '23 10:01 SchraderR

I'm getting this issue as well. I created a stackblitz to replicate it here: https://stackblitz.com/edit/angular-y3ta8a-hrrtb4?file=src/app/datepicker-overview-example.html

It seems the issue only appears if you open the datetime picker before opening the material date picker. If you open the material one first then you don't see the issue

I had this problem. This is my fix. Add this css to styles.css(scss) button.mat-calendar-body-cell { position: absolute; height: 100%; } td.mat-calendar-body-cell { position: relative; height: 0; }

These styles do seem to fix the date buttons but the arrow next to the month picker is also doing something strange which affects the mat date picker as well. image

It usually looks like this chrome_OK69PVLlSZ

button.mat-calendar-body-cell { position: absolute; height: 100%; }

td.mat-calendar-body-cell { position: relative; height: 0; }

.mat-calendar-arrow { width:0 !important; } Try this setting, and the arrow size will become normal, and the error will disappear.

ArrayDonovan avatar Feb 27 '23 13:02 ArrayDonovan