Page 1 of 1

CheckBox spacing at end

Posted: Mon Jan 11, 2016 11:28 pm
by mritter0
I have noticed that checkbox.gadgets have extra space at the end of the text. In the image the group right bar is right at the end of the chooser.gadget, but has extra room after the checkbox.gadget text. It's not an error, just an observation that is not consistent with the other gadget types.

Re: CheckBox spacing at end

Posted: Mon Apr 02, 2018 7:28 pm
by mritter0
Has this been looked at? Hopefully fixed. radiobutton.gadget class does it, as well. Puts extra padding at the end of the text when it shouldn't.

Image

Image

Image

Re: CheckBox spacing at end

Posted: Mon Apr 02, 2018 8:09 pm
by mritter0
When use LAYOUT_ShrinkWrap to bring the scrollers closer to the texteditor gadget, there is a spacing error. It does not happen when don't use shrink wrap.

Image

Re: CheckBox spacing at end

Posted: Mon Apr 02, 2018 9:23 pm
by broadblues

LAYOUT_ShrinkWrap (BOOL)
If set to TRUE, the layout group will shrink the interspacing
of the child objects to minimum. Normally all extra space (if
the total maximum size of the child objects is less than the
size of the layoutgroup) is evenly distributed between the
gadgets.
This it's doing what you asked. there will be no space between the vertical scroller and the texteditor, so the small extra space untended to align the gadgets properly ended up at the end.

You are trying to micro manage the layout, but's not designed like that. Let the layout gadget handle the layout and just use the occasional weighted height and width to get the general layout you need.