Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

dbc.Row and dbc.Col trigger horizontal scroll bar

$
0
0

Hello,

For last couple of days I have been fighting with horizontal scross bar that shows up at the bottom on the screen:

Even when content is super simple and should not be wider than screen, this slider is there. It looks like there are just a couple of pixels standing out, but still irritating.

This is caused by dbc.Row and dbc.Col (even if column width is < 12). See at the following simple code that reprodues a problem:

app.layout = html.Div([
html.H2(id = ‘header_line’, children = “Title”),
html.Div(
children=[
dbc.Label(“Some slider”),
dcc.RangeSlider(id=‘period_slider’),
],
),

# Intermediate data only
html.Div(
    id="intermediate_data_loading_div",
    children=[
        dcc.Loading(
            id="intermediate_data_loading", 
            children=[
                html.Div(id='intermediate_period_data', style={'display':'none'}),
                html.Div(id='intermediate_timesheet_data', style={'display':'none'}),
                ],
            ),
        ],
    style={
        'padding-top':'10px',
        'padding-bottom':'10px',
        }
    ),

# This causes problem!
dbc.Row(
    id='graphs_row',
    children=[
        # Column with left pane
        dbc.Col(
            [
                html.H4(id = 'summary_line', children = "Content goes here"),
            ],
            width=5,
        ),
    ],
    ),
])

Any ideas how to fix that?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles