Closed frissyn closed 2 years ago
Thank you :) I'll update the wiki according to your findings
About the pad
I think I should just change the name for it for SameLine
to avoid confusion (which will be available in the next major v1.0.0 version)
In the Slab documentation for
Slab.BeginWindow(...)
a number of options are listed, but the side effects of each option being enabled/disabled are a bit unclear. Nothing is a major overlook, but I did have to spend of bit of time playing around with the options to come to right conclusions.AutoSizeContent
is set tofalse
, the window will no longer display scrollbars if the content overflows.MainMenuBar
exists in the viewport, setting theX
andY
of a Window to0
will account for the height of the bar. (Ideal behavior, but that isn't documented, so I assumed otherwise.)There are some other weird caveats as well.
Slab.Text(...)
, thePad
option appears to apply the pixel padding to both sides of the text. (I could be wrong, but in all my usage of that option it seemed to be that way)Slab.SameLine(...)
, thePad
option applies the pixel padding to only the right side of the last element of the previous line. Expected behavior, but conflicts with how the Pad option works forSlab.Text
Just a general heads up, I'll update this issue if I find more. 👍🏽