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

Keep tile ratio #233

Open
krisu-pl opened this issue Oct 5, 2016 · 2 comments
Open

Keep tile ratio #233

krisu-pl opened this issue Oct 5, 2016 · 2 comments

Comments

@krisu-pl
Copy link

krisu-pl commented Oct 5, 2016

Hi!

Thanks for the awesome plugin! I have one issue, I'd like to have tiles with a fixed ratio - small square (1x1), wide (1x2) and tall (2x1). A grid should take the whole viewport width and tiles should keep the ratio as their width changes. Right now my tiles are sometimes longer, sometimes shorter than others (e.g. wide tile is not exactly 2x wider than square one).

Is there any solution for that?

@krisu-pl krisu-pl changed the title Keep ratio Keep tile ratio Oct 5, 2016
@kombai
Copy link
Owner

kombai commented Oct 10, 2016

Hi
you can set it with fixSize param:

 //fixSize: 0, resize but keep ratio = no fill gap;

example:

wall.reset({
 ...
 fixSize: 0
 ...
})

Best

@laurensV
Copy link

Not always working, see #234

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