-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
Shrinking 2 split areas to a width of 0 prevents you from being able to open them #213
Comments
Put a PR in for this, fixed version here https://github.com/johnsusek/split |
I think the problem lies deeper than the fix in the linked PR suggests. Let's look at the code for percentages (same arguments are also valid for
In this snippet, the variable Further down:
Since @nathancahill could you by any chance take a look at this? I might be able to prepare a PR, but would be happy to avoid working with a fork. Explanations why the above is wrong are also greatly appreciated :) |
…fail Instead of using a trackIndex (track) retreived by searching for a non-zero value in a filtered (potentially smaller) array, get the index from the actual trackValues array and skip creating filtered array variants Additionally: * remove redundant outer `if`-blocks and associated computations, surrounding the fraction/percentage `..ToPixel`-calculations * expand utility tests to fully test updated `firstNonZero` function
As i am also interested in this phenomenon regarding Split Grid, i felt free to reference the issue by @ChuckFields here.
original issue: stijlbreuk-dev/vue-split-grid#9, gif by @ChuckFields
@nino-vrijman already did some invesitgation (stijlbreuk-dev/vue-split-grid#9 (comment))
Following the forked CodePen, my chrome outputs similiar
NaNfr 5px NaNfr 5px 226.8fr
, when trying to open the grid again.Could this be a bug in Split Grid?
The text was updated successfully, but these errors were encountered: