mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-161357, IJPL-162474 Set JBTabsImpl tab position in init
This takes care of the divider visibility regardless of when and how the tabs are created, fixing both mentioned issues. GitOrigin-RevId: 9907327b4c817db4f134d3f2cdd8a3f8a3163287
This commit is contained in:
committed by
intellij-monorepo-bot
parent
482d11a250
commit
58d1b83ea3
@@ -516,6 +516,7 @@ open class JBTabsImpl internal constructor(
|
||||
}
|
||||
}.addTo(this)
|
||||
scrollBarChangeListener = ChangeListener { updateTabsOffsetFromScrollBar() }
|
||||
setTabsPosition(tabsPosition)
|
||||
}
|
||||
|
||||
@Internal
|
||||
@@ -1405,7 +1406,6 @@ open class JBTabsImpl internal constructor(
|
||||
|
||||
assert(visibleInfos.isEmpty())
|
||||
visibleInfos.addAll(tabs)
|
||||
setTabsPosition(tabsPosition) // update the divider visibility
|
||||
resetTabsCache()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user