@@ -42,6 +42,8 @@ public class CodeViewController {
42
42
@ FXML
43
43
private MenuBarController menuBarController ;
44
44
@ FXML
45
+ private ScrollPane solutionClusterScrollPane ;
46
+ @ FXML
45
47
private VBox solutionClusterView ;
46
48
@ FXML
47
49
private SplitPane codeSplitPane ;
@@ -114,14 +116,14 @@ private void initialize() {
114
116
*/
115
117
private void hideClusterPane (){
116
118
Duration duration = Duration .millis (300 );
117
- solutionClusterView .setPrefWidth (solutionClusterView .getWidth ());
118
- solutionClusterView .setMinWidth (solutionClusterView .getWidth ());
119
+ solutionClusterScrollPane .setPrefWidth (solutionClusterScrollPane .getWidth ());
120
+ solutionClusterScrollPane .setMinWidth (solutionClusterScrollPane .getWidth ());
119
121
Timeline timeline = new Timeline (
120
122
new KeyFrame (duration ,
121
- new KeyValue (solutionClusterView .maxWidthProperty (), 0 , Interpolator .EASE_OUT ),
122
- new KeyValue (solutionClusterView .minWidthProperty (), 0 , Interpolator .EASE_OUT )));
123
+ new KeyValue (solutionClusterScrollPane .maxWidthProperty (), 0 , Interpolator .EASE_OUT ),
124
+ new KeyValue (solutionClusterScrollPane .minWidthProperty (), 0 , Interpolator .EASE_OUT )));
123
125
timeline .setOnFinished (event -> {
124
- solutionClusterView .setVisible (false );
126
+ solutionClusterScrollPane .setVisible (false );
125
127
hideSideBarButton .setOnAction (e -> Platform .runLater (this ::openClusterPane ));
126
128
});
127
129
hideSideBarButton .setOnAction (e -> {});
@@ -137,9 +139,9 @@ public void openClusterPane(){
137
139
Duration duration = Duration .millis (300 );
138
140
Timeline timeline = new Timeline (
139
141
new KeyFrame (duration ,
140
- new KeyValue (solutionClusterView .maxWidthProperty (), solutionClusterView .getPrefWidth (), Interpolator .EASE_OUT ),
141
- new KeyValue (solutionClusterView .minWidthProperty (), solutionClusterView .getPrefWidth (), Interpolator .EASE_OUT )));
142
- solutionClusterView .setVisible (true );
142
+ new KeyValue (solutionClusterScrollPane .maxWidthProperty (), solutionClusterScrollPane .getPrefWidth (), Interpolator .EASE_OUT ),
143
+ new KeyValue (solutionClusterScrollPane .minWidthProperty (), solutionClusterScrollPane .getPrefWidth (), Interpolator .EASE_OUT )));
144
+ solutionClusterScrollPane .setVisible (true );
143
145
timeline .setOnFinished (event -> hideSideBarButton .setOnAction (e -> Platform .runLater (this ::hideClusterPane )));
144
146
hideSideBarButton .setOnAction (e -> {});
145
147
timeline .play ();
0 commit comments