Open yesilcimenahmet opened 4 years ago
This is expected behaviour. It's one of the caveats of NanoPop that you'll normally have to handle this manually, in case of pickr it centers the popup in case there is no way of positioning it.
Anyway, could you drop me a JSFiddle example?
This seems not correct.
The picker is expected being above the button, rather than being clipped. A JSFiddle example here https://jsfiddle.net/720g4ch8/1/
Thank you!
@yahoo0742 Huh, you either discovered an edge-case or somethings wrong on my side, everything is as expected:
What is your browser / OS version? ~Are you using the latest pickr version?~ The positioning engine pickr uses has visual tests so that must have something to do with pickr (can anyone confirm this?)
@Simonwep, thanks for your response. I tested on 3 browsers on Mac OS 10.13.6: Chrome Version 85.0.4183.121 (Official Build) (64-bit) Firefox 81.0 (64-bit) And Safari Version 13.1.2 (13609.3.5.1.5) None of them worked as yours. An extreme case is as the screenshot below shows When I click the button, the picker is completely clipped.
Maybe this is related to #246? Because seeing it break on all browsers is kinda weird 🤔
how did you set this to go under the button i tried costum css and on('show') css override and always goes to middle of the page why ?
It seems the container the picker placed into should be 100vh...
Edit: The problem still exists when scrolling
https://user-images.githubusercontent.com/5272402/126507297-5b904c4c-db40-43d9-a5b7-5275ad2b1e21.mp4
This happens on my application and from what I found, it's nanopop that does not compute a position but it's not his fault. In my case, it's document.body.getBoundingClientRect()
that returns height: 0
. If I manually set a height
it will work properly.
In my case, to solve it, I updates my core stylesheet to have something along the lines:
html, body { height: 100% }
Hi,
With Picker 1.6.0 there is no problem with the current settings, but when I use 1.7.2 the Picker is not positioned relative to the object. It is located in the middle of the screen.
Environment: