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

Unable to render any splitter #54

Closed
PandaWood opened this issue Jun 11, 2016 · 2 comments
Closed

Unable to render any splitter #54

PandaWood opened this issue Jun 11, 2016 · 2 comments

Comments

@PandaWood
Copy link

PandaWood commented Jun 11, 2016

Hi, I'm sorry but I cannot get this splitter to work at all.
There must be some assumption I am making about splitters that is not the case (I've used kendo splitter)

My web page, a HTML file attached - wrapped in .txt to allow it to be uploaded here.
it is self sufficient apart from the .css reference (there's no instruction that reminds you that a css inclusion is needed BTW)

Pretty similar to the demo.
All I want is the entire page, fully split vertically - into a left and right side.
Am I using the right plugin?

The code below is definitely running the plugin but not showing any splitters.
jquery-test.txt

@jcubic
Copy link
Owner

jcubic commented Jun 11, 2016

It seems that you need to set the height of the container in pixels otherwise it will not work:

        $(document).ready(function() {     
            var splitter = $('#container').split({
                orientation: 'vertical',
                limit: 10,
                position: '20%'
            });
            var $window = $(window);
            $window.resize(function() {
                splitter.height($window.height()-16); // 8px padding on body
            }).resize();
        });

I need to update the readme.

@PandaWood
Copy link
Author

Thanks, that's it.
Your workaround is the best way to get around it - since I don't want to specify a height (other than 100%)

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

2 participants