When creating a modal with options: "position: absolute, offsetY: 0", chico adds an initial value to offsetY of:
(viewportHeight - modalContainerHeight)/2
I guess the idea of changing default's position fixed for absolute, is to give the modal an exact position by setting X and Y offsets without having chico calculating vertical position.
When creating a modal with options: "position: absolute, offsetY: 0", chico adds an initial value to offsetY of:
(viewportHeight - modalContainerHeight)/2
I guess the idea of changing default's position fixed for absolute, is to give the modal an exact position by setting X and Y offsets without having chico calculating vertical position.