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

Responsive design: Option for left positioning to be output as a percentage? #574

Closed
tbredin opened this issue Jun 17, 2014 · 16 comments
Closed

Comments

@tbredin
Copy link

tbredin commented Jun 17, 2014

Firstly - I've used masonry quite a lot in the past - wonderful tool! Thanks heaps.

I have something of a feature request - in responsive design, the debounce on the resize event that positions the elements has always bugged me (or rather, more often than not, made our clients unhappy!).

However, in a fluid responsive grid we usually work in percentages. If there was an option to output masonry 'left' positions as percentages, this issue would almost completely disappear.

@desandro
Copy link
Owner

Great suggestion 🐬! I took a shot and put together this example. Try resizing window to see media query in effect.

http://codepen.io/desandro/pen/FlIpf

This adds a new option, percentPosition: true. It sets position of the column in percentage. To use the code, add the Outlayer.Item.prototype.layoutPosition code.

If others would like to see this feature merged into production, please +1

@elcontraption
Copy link

+1🍒

@tbredin
Copy link
Author

tbredin commented Jun 17, 2014

Wow, you're fast! That looks awesome.

Big +1

@sawks
Copy link

sawks commented Jun 17, 2014

+1 – thanks

@KyreenaH
Copy link

+1! Thanks!

@mmilo
Copy link

mmilo commented Jun 18, 2014

+1

@codapill
Copy link

+1 - awesome.

@nboliver
Copy link

+1 please!

1 similar comment
@danielschmid
Copy link

+1 please!

@jakschu
Copy link

jakschu commented Oct 13, 2014

+1

@adrian-e
Copy link

+1 this looks awesome ! could it be implemented as an option in packery too ?

@cdohman
Copy link

cdohman commented Oct 18, 2014

+1

@perry
Copy link

perry commented Jan 22, 2015

+1

@ram-you
Copy link

ram-you commented Jan 25, 2015

+1

@Tuckie
Copy link

Tuckie commented Jan 26, 2015

+1

desandro added a commit to metafizzy/outlayer that referenced this issue Apr 7, 2015
@desandro
Copy link
Owner

desandro commented Apr 9, 2015

Masonry v3.3.0 adds percentPosition option to position percent-width items fluidly. No more re-adjust transitions. 🎈 Demo: http://codepen.io/desandro/pen/JFpeg

Try it out! If you run into any problems, please open a new issue.

@desandro desandro closed this as completed Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests