[neon] ProcessButton positioning [message #1759088] |
Thu, 06 April 2017 07:41  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
...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   |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04493 seconds