briefcase icon indicating copy to clipboard operation
briefcase copied to clipboard

Weird field size changes on the export conf panel

Open ggalmazor opened this issue 6 years ago • 1 comments

Problem description

This happens only on the custom conf panels because the export directory field can be cleared.

custom conf

  • 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.

ggalmazor avatar Sep 06 '18 11:09 ggalmazor

The easiest, 5 minutes fix for this would be to set the same size for both buttons:

custom conf 2

These two lines in ConfigurationPanelForm.java#105 take care of that:

exportDirCleanButton.setPreferredSize(exportDirChooseButton.getPreferredSize());
pemFileClearButton.setPreferredSize(pemFileChooseButton.getPreferredSize());

ggalmazor avatar Sep 06 '18 12:09 ggalmazor