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

Automatic overflow hides content #19

Open
wecraft opened this issue Jun 16, 2017 · 2 comments
Open

Automatic overflow hides content #19

wecraft opened this issue Jun 16, 2017 · 2 comments
Labels

Comments

@wecraft
Copy link

wecraft commented Jun 16, 2017

Hello @specious , I really like how the plugin works, but using this init:

$("#carousel").Cloud9Carousel({
	buttonLeft: $("#buttons > .left"),
	buttonRight: $("#buttons > .right"),
	autoPlay: 0,
	bringToFront: true,
	smooth: true
});

the content is hidden by default, only the arrows are visible.

This is my markup (using pug):

#carousel
	img.cloud9-item(src='images/phone-screens/screen01.png', alt='Item #1')
	img.cloud9-item(src='images/phone-screens/screen02.png', alt='Item #2')
	img.cloud9-item(src='images/phone-screens/screen03.png', alt='Item #3')
        #buttons
		button.left
			| ←
		button.right
			| →
@specious
Copy link
Owner

I appreciate that you are giving this carousel a try. Thank you for sharing what you're attempting to do and that it's not working as might be expected.

The carousel element isn't automatically sized to accommodate its children, as that would cause constant resizing and be difficult to work with. I recommend either explicitly defining its dimensions or have the carousel be automatically sized to fit a parent container.

Also, if you look at the demos, the button controls are not contained inside the carousel element itself.

@nicholasfay
Copy link

@specious How would you automatically size the carousel to fit the parent container when resizing the window?

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

No branches or pull requests

3 participants