mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-11069 unexpected vertical scrollbar in Bower integration;
Review CR-WS-326
This commit is contained in:
@@ -68,6 +68,9 @@ public class InstalledPackagesPanel extends JPanel {
|
||||
return tableCellRenderer;
|
||||
}
|
||||
};
|
||||
// Defence from javax.swing.JTable.initializeLocalVars:
|
||||
// setPreferredScrollableViewportSize(new Dimension(450, 400));
|
||||
myPackagesTable.setPreferredScrollableViewportSize(null);
|
||||
myPackagesTable.getTableHeader().setReorderingAllowed(false);
|
||||
|
||||
myUpgradeButton = new AnActionButton("Upgrade", IconUtil.getMoveUpIcon()) {
|
||||
@@ -94,7 +97,6 @@ public class InstalledPackagesPanel extends JPanel {
|
||||
})
|
||||
.addExtraAction(myUpgradeButton);
|
||||
|
||||
decorator.setPreferredSize(new Dimension(500, 500));
|
||||
add(decorator.createPanel());
|
||||
myInstallButton = decorator.getActionsPanel().getAnActionButton(CommonActionsPanel.Buttons.ADD);
|
||||
myUninstallButton = decorator.getActionsPanel().getAnActionButton(CommonActionsPanel.Buttons.REMOVE);
|
||||
|
||||
@@ -34,6 +34,7 @@ import com.jetbrains.python.sdk.flavors.IronPythonSdkFlavor;
|
||||
import com.jetbrains.python.sdk.flavors.PythonSdkFlavor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -50,6 +51,7 @@ public class PyInstalledPackagesPanel extends InstalledPackagesPanel {
|
||||
|
||||
public PyInstalledPackagesPanel(Project project, PackagesNotificationPanel area) {
|
||||
super(project, area);
|
||||
setPreferredSize(new Dimension(500, 500));
|
||||
|
||||
myNotificationArea.addLinkHandler(INSTALL_SETUPTOOLS, new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user