From 29750c47770c898dd6deb53970333f7bd177e1ae Mon Sep 17 00:00:00 2001 From: j-dimension Date: Mon, 11 Dec 2023 14:45:26 +0100 Subject: [PATCH] layout fixes for when scrollbars are visible. close #1614 --- .../src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.form | 1 + .../src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java | 2 ++ .../src/com/jdimension/jlawyer/ui/folders/FolderListCell.form | 2 +- .../src/com/jdimension/jlawyer/ui/folders/FolderListCell.java | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.form b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.form index 5f746eb2d..a98e38aca 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.form +++ b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.form @@ -327,6 +327,7 @@ + diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java index c5a45f3c8..537abf144 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java @@ -706,6 +706,7 @@ public class CaseFolderPanel extends javax.swing.JPanel { /** * Creates new form CaseFolderPanel + * @param readonly */ public CaseFolderPanel(boolean readonly) { initComponents(); @@ -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); diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.form b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.form index ed27dc096..a86d6668f 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.form +++ b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.form @@ -67,7 +67,7 @@ - + diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.java b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.java index 8dd0ecea2..b63d110a5 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/FolderListCell.java @@ -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)