Open ClayMDMI opened 3 years ago
I faced this too, thanks for sharing. Overriding the css seems to be a great way.
I to am facing a similar issue. I have litepicker with a custom parentEl that is positioned far down on a page. So when the litepicker is shown it calculates it position relative to the pody instead of the set parentEl which makes it appear somewhere way further down than it should.
Did you have any luck?
Report When creating a picker and passing a parent element that is relatively positioned as an option, the picker does not match the input and can potentially be shown off screen.
Manually removing the top and left css properties moves the picker to the correct location, directly under the input element.
To Reproduce Steps to reproduce the behavior:
position: relative; left: 150px;
Expected behavior I would expect that no matter the position of the parent element, the picker would detect that location and appear underneath it.
jsfiddle.net https://jsfiddle.net/ux12yg6L/