mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
use hint instead of setting the bounds, so that parent composite would be resized appropriately
This commit is contained in:
parent
940b97812d
commit
837ab5d394
@ -113,11 +113,11 @@ public class RangeFeederGUI extends AbstractFeederGUI {
|
||||
netmaskCombo.setToolTipText(getLabel("feeder.range.netmask.tooltip"));
|
||||
|
||||
pack();
|
||||
if (Platform.LINUX) {
|
||||
Rectangle comboBounds = netmaskCombo.getBounds();
|
||||
Rectangle endIPBounds = endIPText.getBounds();
|
||||
netmaskCombo.setBounds(comboBounds.x, comboBounds.y, endIPBounds.x + endIPBounds.width - comboBounds.x, comboBounds.height);
|
||||
}
|
||||
Rectangle comboBounds = netmaskCombo.getBounds();
|
||||
Rectangle endIPBounds = endIPText.getBounds();
|
||||
int width = endIPBounds.x + endIPBounds.width - comboBounds.x;
|
||||
((GridData) netmaskCombo.getLayoutData()).widthHint = width - 5;
|
||||
pack();
|
||||
|
||||
// do this stuff asynchronously (to show GUI faster)
|
||||
asyncFillLocalHostInfo(hostnameText, startIPText);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user