flamendless / Slab

An immediate mode GUI for the Love2D framework.
MIT License
294 stars 25 forks source link

Layout doesn't have a 'control border' option #82

Open togfoxy opened 3 years ago

togfoxy commented 3 years ago

The layout works really well but there is no way to say that controls within the layout should be spaced out with a border.

If there was a {border=3} flag (for example) then the layout would space controls 3 units apart and not right next to each other. My work around is to use Newline() to get some distance between buttons. I can also use absolute x/y as well (I guess) but a border flag would be handy.

flamendless commented 3 years ago

Hi @togfoxy , can you send a minimal main.lua of the use case you have so I can easily test and add the Border flag?

also correct me if im mistaken but border is a line draw around each column right? i think what you want for spacing around is padding