Hi,
I am new to django plotly dash. I a using dash2.0 version nd django version 3.2
Why it become very laggy on the website when i inserting the vertical-align’:‘top’ into the style of html.Div?
it works fine with style={‘display’:‘inline-block’} but i want to align both Div on the same top level, so i added in vertical align into it , style={‘display’:‘inline-block’, ‘vertical-align’:‘top’} then the entire webiste become very laggy.
Is this a bug or something wrong with my code?
I have pasted part of the code below:
def combining_home_layout(**kwargs):
layout = html.Div([
html.Div(id='production',
children=[
html.Div(
children = [
html.Button(
id='productionbutton',
children=[
dcc.Link(
href='/production',
children=[
html.Img(id='productionimage', src=Image.open('{}/static/images/production_final.jpg'.format(project_path)))
],
),
],
)],
style={'display':'inline-block'}
),
html.Div(
children=[
formulate_production_board_table('production_board_table', production_board)
],
#duno why very laggy after putting vertical align into it...
#style={'display':'inline-block', 'vertical-align':'top'}
),
],
style={'border':'1px solid black'}
),
html.Br()
return layout