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:
Sergei Tachenov
2024-09-19 17:33:23 +00:00
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()
}