Closed kaern closed 5 hours ago
it was a scrollbar issue..
import dash
import dash_bootstrap_components as dbc
from dash import dcc, html
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
app.layout = html.Div(
style={
"height": "100vh",
"overflowY": "scroll",
},
children=[
dbc.Container(
[
dbc.Row([
dbc.Col(html.H3("Something", className="mb-3"), width=4),
dbc.Col(dcc.Graph(style={"height": "350px"}), width=8),
], className="mb-5"),
dbc.Row([
dbc.Col(html.H3("Something", className="mb-3"), width=4),
dbc.Col(dcc.Graph(style={"height": "350px"}), width=8),
], className="mb-5"),
],
fluid=False,
className="dbc dbc-ag-grid",
)
]
)
if __name__ == '__main__':
app.run_server(debug=True)
Can anybody tell why this simple layout with 2 rows 2 cols each and graphs inside, move slight to the left upon loading ?