Skip to content

Alignment of widgets in a row if they are of different types is broken #3220

@asaini

Description

@asaini

Summary

When widgets of different types are placed in columns within a row, their vertical alignment gets broken. (See example below). Users report that this was working previously but was recently broken in v0.81

Steps to reproduce

import streamlit as st

col1, col2, col3, col4 = st.beta_columns(4)

with col1:
    st.write('GCFS Countries.xlsx')

with col2:
    box2 = st.text_input(label='', value='gdfs')

with col3:
    box3 = st.text_input(label='', value='gdfs_countries')

with col4:
    box4 = st.selectbox(label='', options=['replace'])

Expected behavior:

Widgets should be aligned at the same level vertically

Actual behavior:

Screen Shot 2021-05-05 at 8 58 32 AM

Is this a regression?

That is, did this use to work the way you expected in the past?

Yes, users report that this was working correctly as of 0.78

Metadata

Metadata

Assignees

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