mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-1410 fix scroll bars in userlist of shared project
This commit is contained in:
parent
f9463e600d
commit
5912d6bbea
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue