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

Multiple containers on single page causes all container to have same height #7

Closed
vinha opened this issue Feb 10, 2013 · 5 comments
Closed

Comments

@vinha
Copy link

vinha commented Feb 10, 2013

If there are more than one Freetile containers on the page, all of them will get the same height value, no matter how much content they hold.

Furthermore, the height value Freetile applies on all containers seems to be approximately the sum of heights of the containers before Freetile's layout changes.

Apart from that, the elements seem to align nicely inside their containers.

@yconst
Copy link
Owner

yconst commented Feb 12, 2013

Are you using a single call to freetile or separately for each container?

@vinha
Copy link
Author

vinha commented Feb 12, 2013

This is my testing page: http://vinha.fi/emgrid/

The issue happens if I add a new similar .tiles container after the first one is closed. Freetile is called in main.js.

Please ignore the nested container, it isn't affected by Freetile (which is how I wanted it to behave).

@NeoMudaly
Copy link

Seems fine to me in Safari, iPad. Maybe browser related?

@vinha
Copy link
Author

vinha commented Feb 13, 2013

Sorry for misleading URL, It is fine because there are no multiple containers :)

Here is an example of having multiple containers:
http://vinha.fi/emgrid/multiple.html

@yconst
Copy link
Owner

yconst commented Feb 13, 2013

At them moment Freetile does not support multiple containers in a single call. It is in my improvements list, will implement soon. For now, try:

$('.main.tiles').each(function() {
$(this).freetile({
selector: '.tile',
animate: true,
elementDelay: 30
});
});

@vinha vinha closed this as completed Feb 17, 2013
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