Skip to content

'Responsive' prop #114

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

Open
mohammadnouritani opened this issue Apr 9, 2021 · 2 comments
Open

'Responsive' prop #114

mohammadnouritani opened this issue Apr 9, 2021 · 2 comments

Comments

@mohammadnouritani
Copy link

having a problem working with px
I want to make it responsive to the screen size it is messing all the view in mobile

@palerdot palerdot changed the title how to make it responsive Responsive view Apr 9, 2021
@palerdot
Copy link
Owner

palerdot commented Apr 9, 2021

Right now you can watch for window resize event and rerender the component. With fluidWidth option you can pass the dynamic width, and when the window resizes the component would adapt itself.

@palerdot
Copy link
Owner

palerdot commented Apr 9, 2021

But it could be simpler if there was a responsive prop so that users don't have to go through this step. I will try to add this in next release.

@palerdot palerdot changed the title Responsive view 'Responsive' prop Apr 9, 2021
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