Skip to content

Commit

Permalink
ReportingPeriodDReportingPeriodDialog: fixed display on Mac OS X
Browse files Browse the repository at this point in the history
Issue: #447
  • Loading branch information
buchen committed Mar 6, 2016
1 parent 653bd1d commit 5ea655d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ protected Control createDialogArea(Composite parent)
FormDataFactory.startingWith(radioLastDays).top(new FormAttachment(radioLast, 20)).thenRight(days)
.thenRight(lblDays);

if (!Platform.OS_MACOSX.equals(Platform.getOS()))
if (Platform.OS_MACOSX.equals(Platform.getOS()))
{
// under Mac OS X, the date input fields are not align with the text
// by default

FormDataFactory.startingWith(radioFromXtoY).top(new FormAttachment(radioLastDays, 20))
.thenRight(dateFrom.getControl()).top(new FormAttachment(radioFromXtoY, -1, SWT.TOP))
.thenRight(lblTo).top(new FormAttachment(radioFromXtoY, 2, SWT.TOP))
Expand Down

0 comments on commit 5ea655d

Please sign in to comment.