Skip to content

Commit 372e73c

Browse files
committed
improve updateSymbolSize()
1 parent ade7bdc commit 372e73c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/esri/samples/symbology/read_symbols_from_mobile_style_file/ReadSymbolsFromMobileStyleFileController.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,10 @@ private void updateSymbolSize() {
324324
// display the value in the label
325325
sizeLabel.setText(sizeValue + " px");
326326

327-
// update the preview
328-
buildCompositeSymbol();
327+
// set the size of the symbol
328+
faceSymbol.setSize((float) sizeSlider.getValue());
329+
// update the symbol preview
330+
updateSymbolPreview(faceSymbol);
329331
}
330332

331333
/**

0 commit comments

Comments
 (0)