Fix DescriptionArea layout issue

This commit is contained in:
SiboVG 2022-02-13 13:38:42 +01:00
parent 3273f15202
commit 4d82e76d50
3 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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

View File

@ -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