Skip to content

Active tab should be in view on render  #11284

@philippjfr

Description

@philippjfr

When you display Tabs and set a specific specific tab to be active that tab should be in view by default.

from bokeh.io import show
from bokeh.models import Panel, Tabs
from bokeh.plotting import figure

tabs = []
for i in range(8):
    p1 = figure(plot_width=300, plot_height=300)
    p1.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, i], size=20, color="navy", alpha=0.5)
    tab = Panel(child=p1, title=f"circle {i}")
    tabs.append(tab)
pn.panel(Tabs(tabs=tabs, active=6))

Currently it is instead hidden and you have to use the arrows to see the currently active tab:

Screen Shot 2021-05-17 at 7 28 38 PM

Expected:

Screen Shot 2021-05-17 at 7 29 02 PM

Tested with Bokeh version: 2.3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions