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

Feature request: Not always choose the shortest column #810

Closed
dwilmer opened this issue Jan 27, 2016 · 1 comment
Closed

Feature request: Not always choose the shortest column #810

dwilmer opened this issue Jan 27, 2016 · 1 comment

Comments

@dwilmer
Copy link

dwilmer commented Jan 27, 2016

This is a feature request to change the positioning algorithm. Currently, the algorithm works as follows:

  1. select the height of the shortest column
  2. Select the leftmost (or rightmost) column of the columns with that height.

I would like to propose another algorithm:

  1. Select the height of the shortest column
  2. Select the leftmost (or rightmost) column of the columns with height <= (min_height + e), where e is a small value which the user can set, for example three pixels.

An example where this use case would be nice, can be seen here: http://codepen.io/anon/pen/JGLQVp
In this example, the slightly larger box on the left causes the box on the next line to be positioned in the middle column, while a position in the left column would be more visually pleasing — especially since the small height difference between the columns is not noticeable, due to the gutters and margin.

@desandro
Copy link
Owner

desandro commented Feb 1, 2016

Thanks so much! Closing issue here to discuss in the pull request #811.

@desandro desandro closed this as completed Feb 1, 2016
Repository owner locked and limited conversation to collaborators Feb 1, 2016
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