danielepiccone / ng-pageslide

AngularJS sliding panel for serving additional content from off the page
http://danielepiccone.github.io/ng-pageslide/examples/
451 stars 160 forks source link

Add 'psBuffer' property #157

Closed AndrewIsh closed 6 years ago

AndrewIsh commented 7 years ago

The psBuffer property is designed to enable users who have additional styling elements, such as drop shadows, to properly hide the slideout when not in use. Currently, the slideout only positions itself off the page by the same number of pixels as it's width. If it is styled to have a drop shadow, this shadow is still visible, specifying a buffer enables the user to move it an additional amount off the viewport.

danielepiccone commented 6 years ago

I understand the use case for this, but why should this be part of the slider API? It sounds like it's making up for a particular use case which should be fixed by having another div inside the slider styled accordingly