Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 83328b5

Browse files
authored
fix: corrected widget alignements in install helm chart panel (#876) (#913)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent f42a0fe commit 83328b5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/org/jboss/tools/intellij/openshift/ui/helm/install/InstallPanel.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,20 +133,20 @@ private void createComponents() {
133133
add(chartNameLabel, "gapleft 4, growx, pushx");
134134

135135
this.statusIcon = new StatusIcon();
136-
add(statusIcon.get(), "pushx, growx");
136+
add(statusIcon.get(), "pushx, growx, wrap");
137137

138-
this.installButton = new JButton("Install");
139-
installButton.addActionListener(this::onInstall);
140-
add(installButton, "spany 2, pushx, alignx right, aligny center, wrap");
141-
142-
add(new JBLabel("Release name:"), "");
138+
add(new JBLabel("Release name:"), "skip");
143139
this.releaseNameText = new JBTextField();
144140
this.releaseNameValidator = new ComponentValidator(parentDisposable)
145141
.withValidator(new ReleaseNameValidator(releaseNameText))
146142
.installOn(releaseNameText)
147143
.andRegisterOnDocumentListener(releaseNameText);
148144
releaseNameText.addKeyListener(onKeyPressed(installButton));
149-
add(releaseNameText, "spanx 2, pushx, growx, wrap");
145+
add(releaseNameText, "spanx 2, pushx, growx");
146+
147+
this.installButton = new JButton("Install");
148+
installButton.addActionListener(this::onInstall);
149+
add(installButton, "pushx, alignx right, aligny center, wrap");
150150

151151
add(new JBLabel("Active " + (odo.isOpenShift() ? "project:" : "namespace:")), "skip, pushx");
152152
this.currentProjectLabel = new JBLabel();
@@ -156,10 +156,10 @@ private void createComponents() {
156156
add(new JBLabel("Version:"), "skip");
157157
this.versionsComboBox = new ComboBox<>(versionsComboBoxModel);
158158
versionsComboBox.addItemListener(onVersionSelected());
159-
add(versionsComboBox, "spanx 2, width 100:100:100, gap 4 0 0 0, wrap");
159+
add(versionsComboBox, "wmax 100, wrap");
160160

161161
this.valuesOrResultPanel = new ValuesOrResultPanel(parentDisposable, project);
162-
add(valuesOrResultPanel, "skip, spanx, push, grow, gap 0 0 0 4, height 400:600, wrap");
162+
add(valuesOrResultPanel, "spanx, push, grow, gap 0 0 0 4, height 400:600, wrap");
163163

164164
setChart(chart);
165165
valuesOrResultPanel.setValuesListener(onValuesChanged());

0 commit comments

Comments
 (0)