Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Position relative to parentEl #317

Open
bjornandrip opened this issue Apr 19, 2023 · 0 comments
Open

Position relative to parentEl #317

bjornandrip opened this issue Apr 19, 2023 · 0 comments

Comments

@bjornandrip
Copy link

Describe the bug
I have a div positioned far down on a page that has a datepicker. This datepicker shows a litepicker instance when pressed which positions itself relative to the parentEl but calculates it top attribute relative to the body.

To Reproduce
Steps to reproduce the behavior:

  1. Create a div which has margin-top: 500px for example and position: relative
  2. Initialise a Litepicker inside the child div with it set as its parentEl.

Expected behavior
The litepicker is positioned relative to the parentEl in step 1 and gets the correct top positioning relative to its parent.

jsfiddle.net / codepen.io / etc
Please provide a link with bug.

Additional context

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant