PY-59569 Packaging(fix): Modules area of Python packages toolwindow is not resizable

GitOrigin-RevId: de5174f21e1209c485662476f715c5240787e410
This commit is contained in:
Nikita.Ashihmin
2024-09-02 12:09:22 +00:00
committed by intellij-monorepo-bot
parent 469d6dcd72
commit d4a3b2095a
@@ -132,7 +132,7 @@ class PyPackagingToolWindowPanel(private val project: Project) : SimpleToolWindo
add(topToolbar, BorderLayout.NORTH)
add(splitter!!, BorderLayout.CENTER)
}
//setContent(mainPanel!!)
setContent(mainPanel!!)
}
private fun createLeftPanel(): JComponent {
@@ -143,8 +143,12 @@ class PyPackagingToolWindowPanel(private val project: Project) : SimpleToolWindo
border = BorderFactory.createEmptyBorder()
}
left.add(moduleController.component, BorderLayout.WEST)
left.add(packageListController.component, BorderLayout.CENTER)
val splitter = OnePixelSplitter(false).apply {
firstComponent = moduleController.component
secondComponent = packageListController.component
}
splitter.proportion = 0.2f
left.add(splitter, BorderLayout.CENTER)
return left
}