CheckBox spacing at end

A forum for general AmigaOS 4.x support questions that are not platform-specific

CheckBox spacing at end

Postby mritter0 » Tue Jan 12, 2016 12:28 am

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.
Attachments
Checkbox.png
Workbench Explorer - A better way to browse drawers
User avatar
mritter0
 
Posts: 210
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA

Re: CheckBox spacing at end

Postby mritter0 » Mon Apr 02, 2018 8:28 pm

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
Workbench Explorer - A better way to browse drawers
User avatar
mritter0
 
Posts: 210
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA

Re: CheckBox spacing at end

Postby mritter0 » Mon Apr 02, 2018 9:09 pm

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
Workbench Explorer - A better way to browse drawers
User avatar
mritter0
 
Posts: 210
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA

Re: CheckBox spacing at end

Postby broadblues » Mon Apr 02, 2018 10:23 pm


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.
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 537
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK


Return to General AmigaOS

Who is online

Users browsing this forum: No registered users and 5 guests