[fixes #926] Fix layout issues motor selection panel
This commit is contained in:
parent
7fdd0ed5c7
commit
6b6f0c8cb1
@ -172,7 +172,7 @@ public abstract class MotorFilterPanel extends JPanel {
|
||||
}
|
||||
});
|
||||
|
||||
sub.add(new JScrollPane(manufacturerCheckList.getList()), "grow,wrap");
|
||||
sub.add(new JScrollPane(manufacturerCheckList.getList()), "grow, pushy, wrap");
|
||||
|
||||
JButton clearMotors = new SelectColorButton(trans.get("TCMotorSelPan.btn.checkNone"));
|
||||
clearMotors.addActionListener( new ActionListener() {
|
||||
|
@ -155,7 +155,7 @@ class MotorInformationPanel extends JPanel {
|
||||
comment.setWrapStyleWord(true);
|
||||
comment.setEditable(false);
|
||||
JScrollPane scrollpane = new JScrollPane(comment);
|
||||
this.add(scrollpane, "spanx, growx, wrap para");
|
||||
this.add(scrollpane, "spanx, grow, pushy, wrap para");
|
||||
}
|
||||
|
||||
// Thrust curve plot
|
||||
|
@ -290,7 +290,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
|
||||
|
||||
JScrollPane scrollpane = new JScrollPane();
|
||||
scrollpane.setViewportView(table);
|
||||
panel.add(scrollpane, "grow, width :500:, spanx, wrap");
|
||||
panel.add(scrollpane, "grow, width :500:, spanx, push, wrap");
|
||||
|
||||
}
|
||||
|
||||
@ -354,7 +354,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
|
||||
rightSide.add(trans.get("TCMotorSelPan.btn.filter"), motorFilterPanel);
|
||||
rightSide.add(trans.get("TCMotorSelPan.btn.details"), motorInformationPanel);
|
||||
|
||||
this.add(rightSide);
|
||||
this.add(rightSide, "growy");
|
||||
|
||||
// Update the panel data
|
||||
updateData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user