align netmask also on Mac

This commit is contained in:
Anton Keks 2021-02-03 17:52:01 +02:00
parent 16b075dedd
commit 2a470daf09

View File

@ -117,6 +117,7 @@ public class RangeFeederGUI extends AbstractFeederGUI {
Rectangle endIPBounds = endIPText.getBounds();
int width = endIPBounds.x + endIPBounds.width - comboBounds.x - 5;
if (Platform.WINDOWS) width -= 22; // TODO: remove width of down arrow, this number may change with updated SWT version
if (Platform.MAC_OS) width += 10;
((GridData) netmaskCombo.getLayoutData()).widthHint = width;
pack();