paytonshaltis / freighter

🚂 Freighter is a highly-customizable HTML carousel library featuring a number of dynamic properties affecting carousel items and transitions. Most prominently, it gives complete control over the resizing method (for responsive layouts) as well as the wrapping method (for content display).
https://paytonshaltis.github.io/freighter
MIT License
1 stars 0 forks source link

Fix position of different sized buttons. #7

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

If the left and right arrow buttons are larger than the containing div, this div should grow in order to fit the buttons. If the buttons are smaller than the height of the div, they should be centered, rather than pushed to the bottom like they are now.

With resizes implemented in #15, the stretch-scale resizing method means that the height of a carousel can change, so the button sizes will need to be checked with this type of carousel.