Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to programmatically change snackbar distance from borders #48

Closed
Fs00 opened this issue Jan 10, 2019 · 1 comment
Closed

Comments

@Fs00
Copy link

Fs00 commented Jan 10, 2019

Hi, I want to suggest a feature that would be extremely useful when you have a FAB and you want to avoid displaying snackbars over it.
It would consist of a function provided by withSnackbar() HOC that gives the ability to set the distance in px of the snackbars stack from the top/bottom border (an example of usage could be this.props.setVerticalDistanceFromBorder(8)), and maybe another one that resets this setting (e.g. this.props.resetVerticalDistanceFromBorder()).
I think that the developer should be given the ability to change it at any time because some views may have FABs and other may not. And if other snackbars are displayed while a new distance is set through this function, they should move up/down accordingly.
If some help is needed for the implementation of this feature, count me in. I need it for a school project, but I'm sure that it will be useful to other people too.

@iamhosseindhv iamhosseindhv changed the title Feature request: add ability to programmatically change snackbar distance from borders Add ability to programmatically change snackbar distance from borders Jan 11, 2019
@iamhosseindhv
Copy link
Owner

@Fs00 Thanks for reporting this. This issue is similar to #57, and a new issue is created for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants