Skip to content

Commit

Permalink
[Pref panel] Remove gaps on confirmation button to fit 600px height
Browse files Browse the repository at this point in the history
Should solve arduino#4753
  • Loading branch information
facchinm committed Jul 5, 2017
1 parent cba0435 commit 2191315
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/src/cc/arduino/view/preferences/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public void itemStateChanged(java.awt.event.ItemEvent evt) {
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(manualProxyPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(manualProxyPasswordLabel))
.addContainerGap(190, Short.MAX_VALUE))
.addContainerGap(50, Short.MAX_VALUE))
);

jTabbedPane1.addTab(tr("Network"), jPanel4);
Expand Down Expand Up @@ -587,11 +587,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(okButton)
.addComponent(cancelButton))
.addContainerGap())
.addComponent(cancelButton)))
);

jPanel2.add(jPanel3);
Expand All @@ -606,7 +604,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 637, Short.MAX_VALUE)
.addGap(0, 580, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
Expand Down

0 comments on commit 2191315

Please sign in to comment.