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

Last item not shown #419

Open
batobolg opened this issue Dec 6, 2018 · 5 comments
Open

Last item not shown #419

batobolg opened this issue Dec 6, 2018 · 5 comments

Comments

@batobolg
Copy link

batobolg commented Dec 6, 2018

when i test this code last item sometimes not shown. !!

   $(document).ready(function() {
		$("#content-slider").lightSlider({
			item:4,
			autoWidth:true,
			loop:false,
			keyPress:true,
			slideMargin: 1,
			controls: false,
			pager: false
			});
		});
    </script>
</head>
<body>
	<div class="demo">
        <div class="item">
            <ul id="content-slider" class="content-slider">
                <li>
                    <h3>1fsdfasdfasfas</h3>
                </li>
                <li>
                    <h3>2 fasdfasdfasdfasdfasdf asdfasdfasdfasdfasdfasdf</h3>
                </li>
                <li>
                    <h3>3</h3>
                </li>
                <li>
                    <h3>4 fasdfasdfasdfasdfasdf asdfasdfasdfasdfasdfasdf</h3>
                </li>
                <li>
                    <h3>5</h3>
                </li>
                <li>
                    <h3>6</h3>
                </li>
            </ul>
        </div>

    </div>	
</body>`

@batobolg
Copy link
Author

batobolg commented Dec 6, 2018

IE11 always , chrome when resize sometimes shown sometimes not.

@MohsEin07
Copy link

Having same issue. Did you get any solution?

@batobolg
Copy link
Author

No, I am just don't using this product anymore. Just handwrite my own.

@amiresp
Copy link

amiresp commented Mar 7, 2020

its worked for me :
seTimeout(()=>{ $("#content-slider").lightSlider({ item:4, autoWidth:true, loop:false, keyPress:true, slideMargin: 1, controls: false, pager: false }); },500)
if not working this; change 500

@patrickufer
Copy link

patrickufer commented Jun 26, 2020

#318 This fixed the problem for me

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

4 participants