Skip to content

st.data_editor jitters on mobile/narrow layout (embedded doc example) #6900

@MathCatsAnd

Description

@MathCatsAnd

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

When viewing the docs on mobile, the embedded example of st.data_editor jitters with an interior scrollbar rapidly appearing and disappearing.

data_editor mobile jitter

Reproducible Code Example

No response

Steps To Reproduce

(On Chrome on a Google Pixel 5)

  1. Go to https://docs.streamlit.io/library/api-reference/data/st.data_editor
  2. Look at the second example (first one with dynamic rows)
  3. Data editor jitters as in gif above

Expected Behavior

It should have a steady display.

Current Behavior

It jitters as shown in the recording.

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: (currently nightly, I think)
  • Python version: 3.9
  • Operating System: Android 13 (latest at time of posting)
  • Browser: Chrome 114.0.5735.130 (latest at time of posting) also DuckDuckGo
  • Virtual environment: n/a

Additional Information

I was not able to reproduce the jitter in Chrome or Firefox in Windows (with simulated mobile dimensions).

I was able to reproduce the bug in DuckDuckGo on the same Google Pixel 5 device. I could also reproduce the issue in Chrome on a Galaxy Note 8.

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

feature:st.data_editorRelated to the `st.data_editor` widgetpriority:P2Medium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamtype: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