Skip to content

Commit 4b6679e

Browse files
bugfix
1 parent 275a01f commit 4b6679e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/ngdatepicker/components/ngdatepicker/ngdatepicker.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ export class NgDatepickerComponent {
136136
this.year--;
137137

138138
if (this.year < this.minYear) {
139-
this.year = this.minYear + this.yearCellsCount / 2 - 1;
139+
this.year = this.minYear;
140140
}
141141

142142
break;
143143
case DatepickerView.Years:
144144
this.year -= this.yearCellsCount;
145145

146146
if (this.year < this.minYear) {
147-
this.year = this.minYear;
147+
this.year = this.minYear + this.yearCellsCount / 2 - 1;
148148
}
149149

150150
break;

0 commit comments

Comments
 (0)