How to collapse/open programatically?
igo opened this issue · 3 comments
igo commented
Is there a way to collapse/open panel programatically? Changing collapsedSizes
doesn't seem to work.
linonetwo commented
This is a problem if the container of SplitPane
is not unmount and remount ( for example, you have three tabs ,each have a SplitPane, but they reuses the same SplitPane, then changes of tab won't affect the SplitPane's collapsedSizes and initialSizes)
So the solution is to let each tab have its own SplitPane instance.
Aishwaryakakade commented
@linonetwo Could you please elaborate this or explain with an example
linonetwo commented
I should have done that, but now i don't have access to the secret code repository in previous company.