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

Images are not always properly sized until the page size changes #2940

Closed
cigamit opened this issue Sep 15, 2019 · 0 comments
Closed

Images are not always properly sized until the page size changes #2940

cigamit opened this issue Sep 15, 2019 · 0 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@cigamit
Copy link
Member

cigamit commented Sep 15, 2019

Describe the bug
When a page is first rendered, the images size as calculated by cacti is smaller than the viewport that the image belongs in, Cacti will force the removal of any sizing attributes for the img tag. However, with SVG graphs, this results in an image that is not sized properly.

To Reproduce
Steps to reproduce the behavior:

  1. Set a Graph Templates image type to SVG
  2. Render that Graph from a graph tree with columns set to 1
  3. Note that the image zoom window is not properly centered around the canvas
  4. Resize the page to a small enough size that the graph resizes
  5. Note that now the zoom window appears as expected.

Expected behavior
The zoom window, and all the graphs should appear in the size that we expect them to.

cigamit added a commit that referenced this issue Sep 15, 2019
In some cases SVG images don't size properly until page is resized
@cigamit cigamit added this to the v1.2.7 milestone Sep 15, 2019
@cigamit cigamit added bug Undesired behaviour resolved A fixed issue labels Sep 15, 2019
@cigamit cigamit closed this as completed Sep 15, 2019
@netniV netniV changed the title In some cases SVG images don't size properly until page is resized Images are not always properly sized until the page size changes Sep 28, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

1 participant