Skip to content

Commit b9704a9

Browse files
Merge pull request #5288 from microsoft/fix/asc/properties-ui
error occurs when show properties.
2 parents 4f20ab2 + ba95a09 commit b9704a9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/springcloud/properties/AzureSlider.form

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<maximum value="25"/>
1818
<minimum value="0"/>
1919
<minorTickSpacing value="1"/>
20-
<paintLabels value="true"/>
20+
<paintLabels value="false"/>
2121
<paintTicks value="true"/>
2222
<paintTrack value="true"/>
2323
<snapToTicks value="false"/>

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/springcloud/properties/SpringCloudAppPanel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import javax.annotation.Nonnull;
4343
import javax.annotation.Nullable;
4444
import javax.swing.*;
45+
import javax.swing.border.EmptyBorder;
4546
import javax.swing.event.DocumentEvent;
4647
import javax.swing.table.DefaultTableModel;
4748
import java.util.Arrays;
@@ -122,6 +123,7 @@ public boolean isCellEditable(int var1, int var2) {
122123
tableInstances.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
123124
tableInstances.getEmptyText().setText("Loading instances");
124125

126+
this.txtStorage.setBorder(new EmptyBorder(0, 2, 0, 2));
125127
this.useJava8.addChangeListener((e) -> debouncer.debounce());
126128
this.useJava11.addChangeListener((e) -> debouncer.debounce());
127129
this.txtJvmOptions.getDocument().addDocumentListener(new DocumentAdapter() {
@@ -182,7 +184,6 @@ private void updateForm() {
182184
numCpuModel.addAll(IntStream.range(1, 1 + (basic ? 1 : 4)).boxed().collect(Collectors.toList()));
183185
numMemoryModel.removeAllElements();
184186
numMemoryModel.addAll(IntStream.range(1, 1 + (basic ? 2 : 8)).boxed().collect(Collectors.toList()));
185-
this.numInstance.prepare();
186187
this.numInstance.setMaximum(basic ? 25 : 500);
187188
this.numInstance.setMajorTickSpacing(basic ? 5 : 50);
188189
this.numInstance.setMinorTickSpacing(basic ? 1 : 10);

Utils/azure-explorer-common/src/com/microsoft/tooling/msservices/serviceexplorer/azure/springcloud/SpringCloudAppNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public SpringCloudAppNode(SpringCloudApp app, SpringCloudNode parent) {
7272

7373
public void onAppStatusChanged(SpringCloudApp app) {
7474
if (this.app.name().equals(app.name())) {
75-
this.app.refresh();
75+
this.refreshNode();
7676
this.fillData(this.app, this.app.activeDeployment());
7777
}
7878
}

0 commit comments

Comments
 (0)