-
Notifications
You must be signed in to change notification settings - Fork 4.2k
1.3.0 bug - Empty columns are not respected in layouts #4216
Copy link
Copy link
Closed
Labels
type:bugSomething isn't working as expectedSomething isn't working as expected
Description
Summary
When using columns for layouts, if a column contains no elements, it is not rendered.
Steps to reproduce
Code snippet:
import streamlit as st
spacing, col = st.columns([9,1])
#if uncommented, it works
#with spacing:
# st.write('')
with col:
if st.button('Login'):
passExpected behavior:
A large amount of spacing followed by a button should be rendered
Actual behavior:
No space is created before the button.
Is this a regression?
yes
Debug info
- Streamlit version: 1.3.0
- Python version: N/A
- Using Conda? PipEnv? PyEnv? Pex? N/A
- OS version: N/A
- Browser version: N/a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:bugSomething isn't working as expectedSomething isn't working as expected

