Skip to content

Conversation

@sfc-gh-lwilby
Copy link
Collaborator

@sfc-gh-lwilby sfc-gh-lwilby commented Aug 22, 2025

Describe your changes

This logic was originally added here to fix a bug with fullscreen rendering. While working on height for st.graphviz_chart, I have found it does not seem to be necessary any longer, I have not noticed the described issues after removing the code. This may be because of the changes that have been made to StyledElementContainer including the min-width styling which was added to fix issues with returning from full screen for other elements.

GitHub Issue Link (if applicable)

Testing Plan

Existing tests. There is a snapshot test that covers the original bug.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@snyk-io
Copy link
Contributor

snyk-io bot commented Aug 22, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@github-actions
Copy link
Contributor

github-actions bot commented Aug 22, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-12296/streamlit-1.48.1-py3-none-any.whl
🕹️ Preview app pr-12296.streamlit.app (☁️ Deploy here if not accessible)

@sfc-gh-lwilby sfc-gh-lwilby added security-assessment-completed Security assessment has been completed for PR impact:internal PR changes only affect internal code change:refactor PR contains code refactoring without behavior change labels Aug 22, 2025
@sfc-gh-lwilby sfc-gh-lwilby changed the title [refactor] Simplification of st.graph_viz rendering logic [refactor] Simplification of st.graphviz_chart rendering logic Aug 22, 2025
# avoid flakiness.
expect(first_graph_svg).not_to_have_attribute("width", "79pt")
# Wait for fullscreen mode to be active by checking the position style
expect(fullscreen_frame).to_have_css("position", "fixed")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are needed because we don't remove the width anymore so we need some other styling change to detect the change to fullscreen for test resiliency.

@sfc-gh-lwilby sfc-gh-lwilby marked this pull request as ready for review August 26, 2025 23:20
@sfc-gh-lwilby sfc-gh-lwilby merged commit 8206a4b into develop Aug 27, 2025
37 checks passed
@sfc-gh-lwilby sfc-gh-lwilby deleted the refactor/simplify-graphviz-chart branch August 27, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:refactor PR contains code refactoring without behavior change impact:internal PR changes only affect internal code security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants