File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
apps/samples/Ensemble8/src/samples/java/ensemble/samples/controls/htmleditor Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,9 @@ public Parent createContent() {
76
76
htmlEditor = new HTMLEditor ();
77
77
htmlEditor .setHtmlText (INITIAL_TEXT );
78
78
79
- ScrollPane htmlSP = new ScrollPane ();
80
- htmlSP .setFitToWidth (true );
81
- htmlSP .setPrefWidth (htmlEditor .prefWidth (-1 )); // Workaround of JDK-8096877
82
- htmlSP .setPrefHeight (245 );
83
- htmlSP .setVbarPolicy (ScrollBarPolicy .NEVER );
84
- htmlSP .setContent (htmlEditor );
79
+ VBox htmlVB = new VBox ();
80
+ htmlVB .setPrefHeight (245 );
81
+ htmlVB .getChildren ().add (htmlEditor );
85
82
86
83
final Label htmlLabel = new Label ();
87
84
htmlLabel .setWrapText (true );
@@ -99,7 +96,7 @@ public Parent createContent() {
99
96
VBox vRoot = new VBox ();
100
97
vRoot .setAlignment (Pos .CENTER );
101
98
vRoot .setSpacing (5 );
102
- vRoot .getChildren ().addAll (htmlSP , showHTMLButton , scrollPane );
99
+ vRoot .getChildren ().addAll (htmlVB , showHTMLButton , scrollPane );
103
100
104
101
return vRoot ;
105
102
}
You can’t perform that action at this time.
0 commit comments