Skip to content

1.3.0 bug - Empty columns are not respected in layouts #4216

@kmcgrady

Description

@kmcgrady

From https://discuss.streamlit.io/t/version-1-3-0/20130/4

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'):
        pass

Expected behavior:

A large amount of spacing followed by a button should be rendered

5F785EB4-D4CE-4C8C-B785-F40241013A45

Actual behavior:

No space is created before the button.

D9BBB67F-5811-4E9C-87C7-7DD3799F2928

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions