Skip to content

Commit

Permalink
Fix the missing Refresh-Button of DataBinding-dialog (#1680) (#1681)
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky committed May 13, 2024
1 parent f424c9f commit 840f82a
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,13 @@ protected void fullLayout() {

if (btnRefresh != null) {
data = new FormData();
data.top = new FormAttachment(btnDel, 0, SWT.BOTTOM);
data.left = new FormAttachment(btnDel, 0, SWT.LEFT);
if (btnDown != null) {
data.top = new FormAttachment(btnDown, 0, SWT.BOTTOM);
data.left = new FormAttachment(btnDown, 0, SWT.LEFT);
} else {
data.top = new FormAttachment(btnDel, 0, SWT.BOTTOM);
data.left = new FormAttachment(btnDel, 0, SWT.LEFT);
}
data.width = Math.max(60, btnRefresh.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
btnRefresh.setLayoutData(data);
}
Expand Down

0 comments on commit 840f82a

Please sign in to comment.