Skip to content

Commit

Permalink
layout fixes for when scrollbars are visible. close #1614
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 11, 2023
1 parent 8e01f22 commit 29750c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="null"/>
</Property>
<Property name="horizontalScrollBarPolicy" type="int" value="31"/>
</Properties>

<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ public class CaseFolderPanel extends javax.swing.JPanel {

/**
* Creates new form CaseFolderPanel
* @param readonly
*/
public CaseFolderPanel(boolean readonly) {
initComponents();
Expand Down Expand Up @@ -1197,6 +1198,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jScrollPane2.setViewportView(pnlDocumentEntries);

jScrollPane1.setBorder(null);
jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
jScrollPane1.setViewportView(foldersListPanel);

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<Component id="txtFolderName" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="cmdMore" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<EmptySpace min="-2" pref="13" max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
.addComponent(txtFolderName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(cmdMore)
.addContainerGap())
.addGap(13, 13, 13))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
Expand Down

0 comments on commit 29750c4

Please sign in to comment.