-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: splitter not observe 'size' and 'closed' values changes #457
fix: splitter not observe 'size' and 'closed' values changes #457
Conversation
hamed-musallam
commented
Mar 7, 2023
•
edited
Loading
edited
- Splitter needs to observer the changes in the initialSize and initialClosed properties. #452
162efa9
to
c3a6755
Compare
/cc @stropitek given you recently had a splitter library on your radar. |
The library I was looking at is: I looked at it and one of the main limitation is that all sizes are expressed in percent. It does not seem possible to set a default panel size in pixel units, which I think we do in NMRium. |
bvaughn/react-resizable-panels#47 (comment) Please also review! |
I don't think I'm ok with the API changes. I don't understand the point of having both The issue also is not very helpful because it describes the solution and not the problem. @lpatiny will show me the root cause of the bug and I will make a second assessment. @hamed-musallam if you could explain the original problem in the issue that would be helpful. A repro as well! |
Currently, in NMRium we can control the size of the split panel from the general settings and it is per workspace and we always update the value once the if we always change the What we have right now in this PR, is we keep default properties Take a look at this comment #452 (comment) |
Why did you choose to add properties rather than keep (or rename) the |
Just to keep the old component interface as it is because most of the users will not control the |
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #457 +/- ##
==========================================
- Coverage 49.49% 49.40% -0.09%
==========================================
Files 137 137
Lines 7356 7371 +15
Branches 184 184
==========================================
+ Hits 3641 3642 +1
- Misses 3715 3729 +14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
I removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I can't test the storybook. Next time please make sure to create a branch on the original repo rather than on a fork so that the cloudflare build works.