Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » HGap in GroupBoxes
HGap in GroupBoxes [message #1851867] Wed, 20 April 2022 11:07 Go to next message
Eclipse UserFriend
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 08:32 Go to previous messageGo to next message
Eclipse UserFriend
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 11:15 Go to previous messageGo to next message
Eclipse UserFriend
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 02:18 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 21:08:14 EDT 2025

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

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

Back to the top