-
Notifications
You must be signed in to change notification settings - Fork 75
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
Flexible flow layout to fill space #66
Comments
If you just want to fill the available space in the width and use whatever makes sense in the height you can tell it to have the number of columns you need, say you want to have 5 columns:
The 5x1 means: fill the width with 5 columns and take whatever space is needed up to the height of the terminal. If you want to limit the height in a particular way, you need to also give the geometry.
Will make the images at most 50 characters high and attempts to fit 5 columns in the 100 character width. Ideally, you'd just give the height and let |
Alright, added the feature to only partially specify the geometry. So now, it is possible to tell
|
Does this solve your feature need ? |
No, unfortunately not, though that is a nice step - I don't want them evenly spaced but right next to each other, so I don't want a fixed grid at all. |
So you'd like to have something like a 'flowing' layout, in which we fill a row with as many images as possible of a particular height, and then start the next row. Depending on the width of the pictures we might get more or less in one row. |
Exactly :) |
I think this could be done by having an option to update the Line 96 in cfd5f7a
Essentially keep a running tally of the current x offset and as you loop through the images keep on adding the image width to the x_offset. |
I want to give timg multiple images scaled to a certain height, and want them to be placed right next to each other without worrying about columns.
The text was updated successfully, but these errors were encountered: