Skip to content

Commit

Permalink
fix(app.py): make layout portrait in rhino
Browse files Browse the repository at this point in the history
  • Loading branch information
devangcx committed Jun 1, 2022
1 parent 292d45b commit d479827
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
submit = False
first_try = 'architext_layout' not in st.session_state
st.image('architext_header.png')
form, image, three_d = st.columns(3)


if not first_try and platform == 'rhino':
form = st.container()
image = st.container()
three_d = st.container()
else:
form, image, three_d = st.columns(3)

with form:
with st.form('Generate Design Option'):
Expand Down Expand Up @@ -77,8 +84,9 @@
vtk_file, hb_model = generate_3d_model(
height, wwr, st.session_state['architext_layout_id']
)
with three_d:
add_viewer(vtk_file)
if platform != 'rhino':
with three_d:
add_viewer(vtk_file)

st.experimental_rerun()
else:
Expand All @@ -91,8 +99,9 @@
vtk_file, hb_model = generate_3d_model(
height, wwr, st.session_state['architext_layout_id']
)
with three_d:
add_viewer(vtk_file)
if platform != 'rhino':
with three_d:
add_viewer(vtk_file)


if not first_try and platform == 'rhino':
Expand Down

0 comments on commit d479827

Please sign in to comment.