mercadolibre / chico

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

Modal initial offsetY in position: absolute #1335

Open jmorazano opened 8 years ago

jmorazano commented 8 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.