Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Materials - md-datepicker display issue on large browser

Im using md-datepicker in my app but it doesnt display right for larger browser widths. Seems to only work as intended for small and x-small widths. Please see screenshot attached.

This happens on Chrome and Safari.

HTML:

<md-datepicker ng-model="data" md-placeholder="mm/dd/yyyy"></md-datepicker>

enter image description here

Ive tried narrowing down the problem using inspector and it may have something to do with the left property value on the md-datepicker-calendar-pane class, but Im not sure.

enter image description here

like image 793
yevg Avatar asked Jul 10 '26 03:07

yevg


2 Answers

I had this issue. table width was set globally as 100% in an app. The following fixed it:

.md-datepicker-calendar-pane table {
  width: auto;
}
like image 120
noob Avatar answered Jul 15 '26 20:07

noob


Check your css

I had something like this which was causing your exact issue

table {border-collapse: collapse; width: 100%;}

like image 44
Rob Avatar answered Jul 15 '26 20:07

Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!