mercadolibre / chico

A collection of easy-to-use UI components.
http://chico.mercadolibre.com
MIT License
342 stars 91 forks source link

Modal initial offsetY in position: absolute #1335

Open jmorazano opened 7 years ago

jmorazano commented 7 years ago

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.