The content width was relatively simple to make work. The container is full width and the input takes up a proportion of that width. Most elements will work with 0.65 scale but the demo window has custom widths as seen in the demo window.
Layout Demo Section
A new Layout demo section has been added which showcases the content width changes and how to use them.
Tweaks:
Changed the slider transparency. I'm not sure why they were partially transparent. Inline with Dear ImGui, there should be fully opaque.
Changed the content width default value to 65% inline with Dear ImGui.
Input fields have a minimum width of 1 to prevent weird sizing issues.
The text for a drag input was under the drag bar. A new textlabel is placed on top to ensure the text is always on top.
Bug Fixes:
The Combo box did not sink inputs meaning you could move the window around whilst the combo box was open, done by holding down on the box and just moving the mouse. By changing it to a button, the input is now sunk.
Some containers did not properly clip descendants.
Notes:
The changes to content width have broken the style editor. Seeing as UDim and Color input fields seem to be a new focus area, I haven't attempted to fix them. The issue is because the new width of each input is the full screen width which pushes everything else away. This does prevent having elements in the sameline for input fields so this may need to change.
As always, some changes are stylistic and up to preference so change anything which needs it.
Great work, no issues with any of the changes. Im also glad you decided not to fix the style editor, im planning on rewriting the entirety of it, once input widgets are completed.
Additions:
Content Width
Layout Demo Section
Tweaks:
Bug Fixes:
Notes: