IDEA-311375 Fix Learn main menu scaling with header and footer

GitOrigin-RevId: e9c3478718aa052c3f2ecf76f4c5ab180bf7ef67
This commit is contained in:
Aydar Mukhametzyanov
2023-02-10 17:33:06 +00:00
committed by intellij-monorepo-bot
parent b82f45564d
commit 7f7f4a70d5
2 changed files with 7 additions and 7 deletions
@@ -51,6 +51,13 @@ class LearnToolWindow internal constructor(val project: Project, private val who
}
}
override fun updateUI() {
super.updateUI()
if (parent != null) {
reinitViews()
}
}
internal fun reinitViews() {
modulesPanel.modulesPanel?.updateMainPanel()
}
@@ -39,13 +39,6 @@ class LearningItems(private val project: Project) : JPanel() {
isFocusable = false
}
override fun updateUI() {
super.updateUI()
if (parent != null) {
updateItems(null)
}
}
fun updateItems(showModule: IftModule? = null) {
if (showModule != null) expanded.add(showModule)