Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

fixed outer container (both height and width) #56

Closed
elmcrest opened this issue Feb 16, 2016 · 3 comments
Closed

fixed outer container (both height and width) #56

elmcrest opened this issue Feb 16, 2016 · 3 comments

Comments

@elmcrest
Copy link

Hey Drew,

excuse me if this like the Enhancement-Issue (#30) but I'm not sure if it is.

it feels like your plugin is doing nearly what I need but I might not be capable of tweaking it accordingly.

What I need is a fixed height and width Container (100%, 100%) and an arbitrary number of elements is getting fitted into the area.

Imagine a Chessboard just with an arbitrary number of black and white fields.

To give you a real world example - we have a Screen here in our office showing some planning (from 5-15 elements) cards / tiles ... and the most important part is that all elements are shown.

and thx for your work, even if it'd turns out I can't use it :) 👍

Marius

@elmcrest
Copy link
Author

of course if anyone else has some tips for me I'd appreciate that :)

@DrewDahlman
Copy link
Owner

You could probably pull this off with some trickery... the issue is that Mason likes to fill the total space vs a specific space, if that makes sense.

You'll notice in the examples for promoted http://masonjs.com/#grid-c the grid stays the same configuration / size on every refresh. This is because the promoted elements are forcing their size thus creating a grid that never changes.

There could also be some tweaks made to the overall code to change it to use 100% x 100% but that would require some re-tooling and re-thinking around the layout algorithm.

@elmcrest
Copy link
Author

ok, cool. then I guess I need to solve this different.

thx anyways so far.

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

No branches or pull requests

2 participants