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
Option to set maxSize/minSize to % rather than px #762
Comments
CrumpetsNTea
changed the title
Set maxSize/minSize to % rather than px
Option to set maxSize/minSize to % rather than px
Nov 9, 2022
I was able to resolve this by having a resize event listener in a useEffect, which then updated a state variable with the window.innerWidth. I then used this state variable to set the minSize. This makes minSize dynamically set to the appropriate size based on the window width, versus being hardcoded to a px value. Ultimately, I believe being able to set the minSize/maxSize values to % rather than px would also resolve this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I was wondering if it would be possible to set maxSize/minSize to a percentage value? I thought this would make sense, since the sizes option is measured in percentage. It would be far more convenient to have maxSize/minSize available to be set as a responsive measurement rather than px.
The primary issue with this is that when I resize the window, it causes a bug where I can no longer resize the columns, it just jumps to one size when I click the gutter. This is resolved by refreshing the page, however this is highly inconvenient. This is likely because of the pixel value changing on window resize. I do not believe this would happen if the value was percentage.
The text was updated successfully, but these errors were encountered: