-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
priority:P2Medium-high priority - fix within one monthMedium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expected
Description
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 you full screen a plotly chart and unfullscreen it, it should retain the size correctly.
Reproducible Code Example
import streamlit as st
import plotly.graph_objects as go
fig = go.Figure(data=[go.Scatter(
x=[1, 2, 3, 4], y=[10, 11, 12, 13],
mode='markers',
marker=dict(
color=['rgb(93, 164, 214)', 'rgb(255, 144, 14)',
'rgb(44, 160, 101)', 'rgb(255, 65, 54)'],
opacity=[1, 0.8, 0.6, 0.4],
size=[40, 60, 80, 100],
)
)])
st.plotly_chart(fig)Steps To Reproduce
- Click Full Screen
- Exit out of full screen
Expected Behavior
Should retain its size
Current Behavior
Gets weird layout problems
Screen.Recording.2022-11-03.at.10.23.34.AM.mov
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version: 1.14.0
- Python version: 3.10.4
- Operating System: Mac
- Browser: Chrome
- Virtual environment: pipenv
Additional Information
No response
Are you willing to submit a PR?
- Yes, I am willing to submit a PR!
Metadata
Metadata
Assignees
Labels
priority:P2Medium-high priority - fix within one monthMedium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expected