briefcase
briefcase copied to clipboard
Weird field size changes on the export conf panel
Problem description
This happens only on the custom conf panels because the export directory field can be cleared.
- Once fields are set, the button "Choose..." is replaced with a shorter "Clear" button.
- Since the export dir and the pem file effectively form a group (date filters use a different control type that isn't affected by the button size change), when there are two short buttons, the space left is filled by the text field, which is configured to take as much space as it's available
- When there's just one short button, the long one prevents the text fields to take up more space on the row with the short one.
Expected behavior
Well, let's discuss this.
The easiest, 5 minutes fix for this would be to set the same size for both buttons:
These two lines in ConfigurationPanelForm.java#105
take care of that:
exportDirCleanButton.setPreferredSize(exportDirChooseButton.getPreferredSize());
pemFileClearButton.setPreferredSize(pemFileChooseButton.getPreferredSize());