Skip to content

Commit 14eb1f6

Browse files
authored
Manage Operational Layers - VBox styles (#570)
* move styling to main class * remove styles from css file
1 parent 078587c commit 14eb1f6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

map/manage-operational-layers/src/main/java/com/esri/samples/manage_operational_layers/ManageOperationalLayersSample.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ public void start(Stage stage) {
184184
controlsVBox.setBackground(new Background(new BackgroundFill(Paint.valueOf("rgba(0,0,0,0.3)"), CornerRadii.EMPTY,
185185
Insets.EMPTY)));
186186
controlsVBox.getStyleClass().add("panel-region");
187+
controlsVBox.setPadding(new Insets(10.0));
188+
controlsVBox.setMaxWidth(200);
189+
controlsVBox.setMaxHeight(260);
187190
controlsVBox.getChildren().addAll(addedLayersLabel, addedLayerNamesList, deletedLayersLabel, deletedLayerNamesList);
188191

189192
// add the map view and control panel to stack pane

map/manage-operational-layers/src/main/resources/manage_operational_layers/style.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
.panel-region {
2-
-fx-padding: 10;
3-
-fx-max-width: 200;
4-
-fx-max-height: 260;
5-
}
6-
71
.panel-region .label {
82
-fx-text-fill: white;
93
}

0 commit comments

Comments
 (0)