Skip to content
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

splitter not working if embedded inside div that is shown on show/hide #224

Open
maharzan opened this issue Dec 22, 2019 · 2 comments
Open

Comments

@maharzan
Copy link

I have a div and want to use split.js to resize the 2 child divs. But the problem is this div is inside a tab which is only shown when clicking the tab. Upon clicking, the child divs appears really small like 97px even though I have defined the sizes.

If this tab is "shown" by default on load, the splitter is working fine, as normal. Is this a bug? Cannot seem to find a solution no matter what I do.

@Wyzix33
Copy link

Wyzix33 commented Dec 26, 2019

Did you try to initialize split.js when you open the tab and destroy it when not... Just an idea...

@prince-vishal
Copy link

prince-vishal commented May 30, 2021

Hey, any update on this? I am facing the same issue

Also , I tried to destroy and re create, but does not works, it sets a high negative width on the panes (-950%-35px).

Also, destroying and recreating should not be a fix, as it will be expensive depending on the use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants