Open k4G17eYWI opened 6 years ago
A more or less similar issue I am facing here. Popup is overlapping the input field when input is located at the end of the page.
Fixed the above problem. In ng2-datetime-picker.directive.ts file, change this condition:
if (thisElBcr.bottom + ng2DatetimePickerElBcr.height > window.innerHeight) { this.ng2DatetimePickerEl.style.bottom = (thisElBcr.bottom - window.innerHeight + 15) + 'px'; }
to this:
if (thisElBcr.bottom + ng2DatetimePickerElBcr.height > window.innerHeight) { this.ng2DatetimePickerEl.style.top = (thisElBcr.top - ng2DatetimePickerElBcr.bottom + thisElBcr.height) + 'px'; }
It will look like:
Here an example: image