Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » [neon] ProcessButton positioning
[neon] ProcessButton positioning [message #1759088] Thu, 06 April 2017 07:41 Go to next message
Simon Meer is currently offline Simon MeerFriend
Messages: 7
Registered: February 2017
Junior Member
Hi there,

Just a quick question: I noticed our ProcessButtons are now aligned on the left-hand side instead of the right-hand side (as I believe they used to be). Is this intentional?
Re: [neon] ProcessButton positioning [message #1759095 is a reply to message #1759088] Thu, 06 April 2017 09:30 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 202
Registered: November 2010
Senior Member
What do you mean by "now", what versions are you comparing? Buttons are left-aligned by default in the model, see AbstractFormField.getConfiguredHorizontalAlignment(). You can change this for each button individually.

Regards,
Beat
Re: [neon] ProcessButton positioning [message #1759159 is a reply to message #1759095] Thu, 06 April 2017 23:12 Go to previous messageGo to next message
Simon Meer is currently offline Simon MeerFriend
Messages: 7
Registered: February 2017
Junior Member
...Which changes my question to why are our buttons left-aligned even though getConfiguredHorizontalAlignment() is set to 1? I thought that buttons marked as ProcessingButton were not layouted in the same way as other elements and could not be aligned at all.

In our case, we have defined a few buttons (with getConfiguredProcessButton() set to true) that should be right-aligned (and were, until a while ago):

public class MySearchForm extends AbstractSearchForm {
  public class MainBox extends AbstractGroupBox {
    [...]

    @Order(10.0)
    public class ResetButton extends AbstractResetButton {
      @Override
      protected int getConfiguredHorizontalAlignment() {
        return 1;
      }
    }

    @Order(20.0)
    public class SearchButton extends AbstractSearchButton {
      @Override
      protected int getConfiguredHorizontalAlignment() {
        return 1;
      }
    }
  }
}


I can't point my finger on when it stopped working, but if you agree that they should be right-aligned, I can investigate further.

Re: [neon] ProcessButton positioning [message #1759168 is a reply to message #1759159] Fri, 07 April 2017 08:45 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 202
Registered: November 2010
Senior Member
Hi Simon

I have just tried it out. The process button alignment in forms does indeed not work correctly. It is still okay in Scout 6.0.x, but not on 6.1.x. We will have a look at it. Thanks for reporting the issue!

Regards,
Beat
Re: [neon] ProcessButton positioning [message #1763396 is a reply to message #1759168] Mon, 15 May 2017 08:46 Go to previous messageGo to next message
Adrian Sacchi is currently offline Adrian SacchiFriend
Messages: 10
Registered: January 2013
Junior Member
The issue was fixed with https://git.eclipse.org/r/#/c/96437/3.
The fix will be included in the next milestone build.
Re: [neon] ProcessButton positioning [message #1763397 is a reply to message #1759168] Mon, 15 May 2017 08:46 Go to previous message
Adrian Sacchi is currently offline Adrian SacchiFriend
Messages: 10
Registered: January 2013
Junior Member
The issue was fixed with https://git.eclipse.org/r/#/c/96437/3.
The fix will be included in the next milestone build.
Previous Topic:Deploy Scout on Tomcat using the Tutorial
Next Topic:TablePage - Load more Data on Scrolling
Goto Forum:
  


Current Time: Fri Mar 29 15:27:34 GMT 2024

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

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

Back to the top