mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-1410 fix scroll bars in userlist of shared project
This commit is contained in:
@@ -482,6 +482,7 @@ public class ProjectAccessPanel extends AbstractWizardJPanel {
|
||||
* Panel for displaying the list of users with repository access.
|
||||
*/
|
||||
class KnownUsersPanel extends JPanel {
|
||||
private static final int DEFAULT_USERLIST_ROWS_TO_SHOW = 20;
|
||||
|
||||
private JList<String> userList;
|
||||
private DefaultListModel<String> listModel;
|
||||
@@ -514,6 +515,8 @@ public class ProjectAccessPanel extends AbstractWizardJPanel {
|
||||
// Set the minimum dimensions of the scroll pane so we can't collapse it.
|
||||
Dimension d = userList.getPreferredSize();
|
||||
d.width = 100;
|
||||
d.height =
|
||||
Math.min(userList.getFixedCellHeight() * DEFAULT_USERLIST_ROWS_TO_SHOW, d.height);
|
||||
sp.setPreferredSize(d);
|
||||
sp.setMinimumSize(new Dimension(100, 200));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user