mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
IJPL-187934 Fix the Switcher preferred size
The Switcher preferred size used to be computed in the monolith using the number of files, through the visibleRowCount property. It was lost at some point when splitting the feature. Bring it back. There were some other UI code next to this line that was also lost, that part is to be investigated and discussed. But this line alone fixes the regression. (cherry picked from commit 61eaa52e0742f6c450d35a2fdfe65cfa69b2894c) IJ-CR-167210 GitOrigin-RevId: 8a16f3718a217db8583e22d9ae3cff29e715ac9f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
38d17f4f9d
commit
73c5e818bc
@@ -315,6 +315,7 @@ object Switcher : BaseSwitcherAction(null), ActionRemoteBehaviorSpecification.Fr
|
||||
})
|
||||
|
||||
files = JBListWithOpenInRightSplit.createListWithOpenInRightSplitter<SwitcherVirtualFile>(maybeSearchableModel, null)
|
||||
files.visibleRowCount = files.itemsCount
|
||||
|
||||
val filesSelectionListener = object : ListSelectionListener {
|
||||
override fun valueChanged(e: ListSelectionEvent) {
|
||||
|
||||
Reference in New Issue
Block a user