Ngx-bootstrap: bsDatepicker adaptivePosition does not respect x-axis and overflows.

Created on 5 Mar 2020  路  2Comments  路  Source: valor-software/ngx-bootstrap

Bug description:
Datepickers on the side of the page are still centered relative to the input, this causes the pickers to overflow the body. On the right it causes scrolling, on the left if just unusable.

StackBlitz that reproduces the issue.

Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: "ngx-bootstrap": "^5.5.0"
Angular: "@angular/core": "^9.0.5",
Bootstrap: "bootstrap": "^4.4.1",
Build system: Angular CLI, System.js, webpack, starter seed:
Angular CLI: 9.0.5
Node: 10.16.0
OS: win32 x64

Expected behavior
Adaptive positioning should respect the window bounding box too, and position the datepicker correctly on the left/right if there's enought space.

comp(datepicker)

Most helpful comment

I am running into this same issue.

All 2 comments

I am running into this same issue.

Any solution for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuoitrexuquang picture tuoitrexuquang  路  3Comments

Scooviese picture Scooviese  路  3Comments

ghiscoding picture ghiscoding  路  3Comments

phmello picture phmello  路  3Comments

tpiros picture tpiros  路  3Comments