Hi Miki, One more question. If I have an odd number of elements in my gri

Hi Miki,

One more question. If I have an odd number of elements in my grid (i.e. images) so that the last row has less elements in it, is there a way to pad out the rest of the row with empty elements?

I’m trying to keep the grid having a uniform look to it, but at the moment the last row of elements span the whole row and get resized accordingly.

I could fix it by restricting the size of the elements but as they are images I don’t want to do that.

It looks great when there is an equal number of elements per row :-) :-)

Thanks,

Stuart.

Hi Stuart,

Grid as in Vaadin Grid (or Grid Select), or Grid as in ItemGrid?

For Vaadin Grid, I have no idea how to achieve that, best place to seek help is to ask on Vaadin forum. Vaadin Grid is a complex beast.

For ItemGrid there is currently no way to do that. But since that is a pretty neat feature to have, I made a ticket in GitHub for it: https://github.com/vaadin-miki/super-fields/issues/250

Cheers,
Miki.

Hi Miki,

Yes, I should have said, ItemGrid :-) . Its really a cool component. I’ve implemented a Calendar view with it and a grid of images.

Thanks for creating a ticket. I’ll be following it!

Stuart.

Hi Stuart (and everyone else, too!),

Just letting you know that version 0.9.3 has been just released. It includes item grid row padding (fully configurable, of course) and GridMultiSelect. Demo should already be updated.

Merry Christmas and Happy New Year!
Miki.

Hi Miki,

I moved to 0.9.3, thanks for the updates, its working really well. The padding on the ItemGrid works perfectly.

Thanks again.

Stuart.