Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphViz Charts when fullscreened dont render the same when exiting out of fullscreen #6527

Closed
3 of 5 tasks
willhuang1997 opened this issue Apr 20, 2023 · 0 comments · Fixed by #7398
Closed
3 of 5 tasks
Labels
feature:st.graphviz_chart priority:P3 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working

Comments

@willhuang1997
Copy link
Collaborator

willhuang1997 commented Apr 20, 2023

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 use st.graphviz_chart() and u go into fullscreen and then exit out of full screen, I would expect the same format and size of the image. However, the image size can change and the black space can change. See this example.
EXPECTED:
Screenshot 2023-04-20 at 12 47 51 PM
ACTUAL:
Screenshot 2023-04-20 at 12 47 45 PM

Reproducible Code Example

import streamlit as st
import time
import graphviz as graphviz

"""examples from https://graphviz.readthedocs.io/en/stable/examples.html"""

# basic graph
hello = graphviz.Digraph('Hello World')
hello.edge('Hello', 'World')

Steps To Reproduce

Click Full Screen
Exit out of full screen

Expected Behavior

UI should stay the same

Current Behavior

More black space and image can change in size.

Is this a regression?

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

Debug info

  • Streamlit version: 1.21.0
  • Python version: 3.10.4
  • Operating System: MacOS
  • Browser: Chrome
  • Virtual environment: Pipenv

Additional Information

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.graphviz_chart priority:P3 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants