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

Canvas stretches particles until resize #175

Closed
Jhappy77 opened this issue Apr 27, 2021 · 2 comments
Closed

Canvas stretches particles until resize #175

Jhappy77 opened this issue Apr 27, 2021 · 2 comments
Labels

Comments

@Jhappy77
Copy link

Jhappy77 commented Apr 27, 2021

The canvas starts at a default height. Any CSS selectors that set the height to 100% only stretch the particles, not change the height attribute of the canvas. Once I resize my window, everything works as intended, but it is horribly stretched until the window is resized for the first time and the canvas size recalculates.

Is there any way to force the canvas size to recalculate immediately? I don't want this stretch effect
image
Initial stretched version (upon reloading site). The canvas has a height attribute of 575, the particles appear as if the canvas was 575px but are stretched to fit the full content.

After resizing the window, the canvas height goes to 100% of parent div like it should, and everything works as intended
image

@stale
Copy link

stale bot commented Jun 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 26, 2021
@stale stale bot removed the stale label Jul 11, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@stale stale bot closed this as completed Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant