angular 2 ng2-datetime-picker shows 6 column

436 Views Asked by At

ng2-datetime-picker shows 6 columns, so days are invalid. Saturday is under Sunday, check image.

ng2-datetime-picker image my code looks like this:

<input date-format="DD-MM-YY" ng2-datetime-picker date-only="true" 
   class="" [(ngModel)]="newDate" (valueChanged)="dateChange($event)" />

I tried to increase with off outer div and width of this input. won't help. Couldn't find this problem elsewhere.

1

There are 1 best solutions below

0
OttO On BEST ANSWER
    .ng2-datetime-picker {
        width: 235px;
    }

    .days {
        width: 100% !important;
    }

this helped, but still don't know what caused this problem.