Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » HGap in GroupBoxes
HGap in GroupBoxes [message #1851867] Wed, 20 April 2022 15:07 Go to next message
Nils Israel is currently offline Nils IsraelFriend
Messages: 67
Registered: May 2010
Member
Hi,
I am trying to reduce the horizontal gap between fields in the grid in regular group boxes.

So far I've tried the following two methods (one after the other), but it doesn't change anything.

  @Override
  protected LogicalGridLayoutConfig getConfiguredBodyLayoutConfig() {
    return (new LogicalGridLayoutConfig()).withSmallHGap();
  }


  @Override
  protected void execInitField() {
    setBodyLayoutConfig(getBodyLayoutConfig().withHGap(1));
  }


I would be glad if someone could point me in thr right direction.
Thanks
Nils
Re: HGap in GroupBoxes [message #1851905 is a reply to message #1851867] Thu, 21 April 2022 12:32 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 253
Registered: March 2010
Senior Member
Hi Nils,

overriding getConfiguredBodyLayoutConfig should work. Are you sure it has no effect? Please note that every field reserves a space for its status as well. You can remove that by setting statusVisible to false. To do it for every field in the group box, call setStatusVisible(false) in execInitField() of the GroupBox.
Re: HGap in GroupBoxes [message #1851914 is a reply to message #1851905] Thu, 21 April 2022 15:15 Go to previous messageGo to next message
Nils Israel is currently offline Nils IsraelFriend
Messages: 67
Registered: May 2010
Member
Thank you Claudio,
you are right. It has an effect, but it is almost unrecognisable if you don't see it side by side.
setting statusVisible to false had the desired effect.
index.php/fa/41992/0/

Best
Nils
Re: HGap in GroupBoxes [message #1851938 is a reply to message #1851914] Fri, 22 April 2022 06:18 Go to previous message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 200
Registered: November 2010
Senior Member
Could the gap be caused by the mandatory indicator of the second field? If yes, you can hide it by adding the CSS class "no-mandatory-indicator" (CssClasses.NO_MANDATORY_INDICATOR) to the field.

Kind regards,
Beat
Previous Topic:How can I execute a scout service using a URL
Next Topic:Migration Scout22 HTML enabled Labels on GroupBox
Goto Forum:
  


Current Time: Wed Feb 21 19:41:14 GMT 2024

Powered by FUDForum. Page generated in 0.02933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top