mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
licence text height control is now correct
git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@265 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
parent
9bf171028b
commit
a776212e44
@ -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/");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user