Skip to content

Commit

Permalink
Expand demos to full screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarren1 committed May 29, 2018
1 parent 4020c3b commit a33b33c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
13 changes: 9 additions & 4 deletions advanced_demo.py
Expand Up @@ -91,12 +91,17 @@
grid.add_graph(col=9, row=9, width=4, height=4, graph_id="animal-pie")


app.layout = dui.Layout(
grid=grid,
controlpanel=controlpanel
app.layout = html.Div(
dui.Layout(
grid=grid,
controlpanel=controlpanel
),
style={
'height': '100vh',
'width': '100vw'
}
)


@app.callback(Output('total-exports-pie', 'figure'),
[Input('state-dropdown', 'value')])
def create_total_exports_pie(state):
Expand Down
10 changes: 8 additions & 2 deletions simple_demo.py
Expand Up @@ -32,8 +32,14 @@
style={"background-color": "purple", "height": "100%", "width": "100%"}
))

app.layout = dui.Layout(
grid=grid,
app.layout = html.Div(
dui.Layout(
grid=grid,
),
style={
'height': '100vh',
'width': '100vw'
}
)

if __name__ == "__main__":
Expand Down

0 comments on commit a33b33c

Please sign in to comment.