Fix DescriptionArea layout issue
This commit is contained in:
parent
3273f15202
commit
4d82e76d50
@ -159,6 +159,7 @@ public class DescriptionArea extends JScrollPane {
|
||||
|
||||
Dimension dim = editorPane.getPreferredSize();
|
||||
dim.height = lineheight * rows + extraheight + 2;
|
||||
this.setPreferredSize(dim);
|
||||
|
||||
this.setViewportView(editorPane);
|
||||
this.setText(text);
|
||||
|
@ -144,7 +144,7 @@ public class NoseConeConfig extends RocketComponentConfig {
|
||||
|
||||
description = new DescriptionArea(5);
|
||||
description.setText(PREDESC + ((NoseCone) component).getType().getNoseConeDescription());
|
||||
panel2.add(description, "w 250lp, spanx, growx, wrap para");
|
||||
panel2.add(description, "wmin 250lp, spanx, growx, wrap para");
|
||||
|
||||
|
||||
//// Material
|
||||
|
@ -175,7 +175,7 @@ public class TransitionConfig extends RocketComponentConfig {
|
||||
description = new DescriptionArea(5);
|
||||
description.setText(PREDESC + ((Transition) component).getType().
|
||||
getTransitionDescription());
|
||||
panel2.add(description, "w 250lp, spanx, growx, wrap para");
|
||||
panel2.add(description, "wmin 250lp, spanx, growx, wrap para");
|
||||
|
||||
|
||||
//// Material
|
||||
|
Loading…
x
Reference in New Issue
Block a user