config: Work around JDK-8079640

This commit is contained in:
Max Weber
2019-12-19 15:46:13 -07:00
parent 37504f2f71
commit e197b17637

View File

@@ -417,7 +417,8 @@ class PluginHubPanel extends PluginPanel
JScrollPane scrollPane = new JScrollPane();
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
scrollPane.setPreferredSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));
// Can't use Short.MAX_VALUE like the docs say because of JDK-8079640
scrollPane.setPreferredSize(new Dimension(0x7000, 0x7000));
scrollPane.setViewportView(mainPanelWrapper);
layout.setVerticalGroup(layout.createSequentialGroup()