From a776212e442bb2a553b02b4bb027879974eb9a6e Mon Sep 17 00:00:00 2001 From: angryziber Date: Sun, 2 Mar 2008 15:49:28 +0000 Subject: [PATCH] licence text height control is now correct git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@265 375186e5-ef17-0410-b0b6-91563547dcda --- src/net/azib/ipscan/gui/AboutDialog.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/azib/ipscan/gui/AboutDialog.java b/src/net/azib/ipscan/gui/AboutDialog.java index 7e37cedc..a9321fe4 100755 --- a/src/net/azib/ipscan/gui/AboutDialog.java +++ b/src/net/azib/ipscan/gui/AboutDialog.java @@ -84,7 +84,9 @@ public class AboutDialog extends AbstractModalDialog { Button button = createCloseButton(); Text licenseText = new Text(shell, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY | SWT.V_SCROLL | SWT.WRAP); - licenseText.setBounds(leftBound, systemLabel.getBounds().y + systemLabel.getBounds().height + 10, shell.getClientArea().width - leftBound - 10, button.getLocation().y - 174); + licenseText.setBounds(leftBound, systemLabel.getBounds().y + systemLabel.getBounds().height + 10, + shell.getClientArea().width - leftBound - 10, + button.getLocation().y - systemLabel.getBounds().y - systemLabel.getBounds().height - 20); licenseText.setBackground(shell.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); licenseText.setText("Licensed under the GNU General Public License Version 2\n\n" + Version.NAME + " is free software; you can redistribute it and/or " + @@ -99,7 +101,6 @@ public class AboutDialog extends AbstractModalDialog { "along with this program; if not, write to the Free Software " + "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA " + "02110-1301, USA, or visit http://www.fsf.org/"); - } }