antvis/G6





The issue has been closed
G6 creates canvas elements with style position: fixed #5031
lfkpoa posted onGitHub
Describe the bug
Hello,
There seems to be a problem in Beta 5 regarding the position of the canvas elements. They are being created with position: fixed, which makes their position fixed with regards to the screen. I think the correct would be position: absolute, which makes their position fixed with regards to the parent container. It ends up staying at a fixed place on the page instead of scrolling with the page. And I think something is wrong when detecting the container height too.
Your Example Website or App
Steps to Reproduce the Bug or Issue
- open https://zhcfkr.csb.app/
- resize the window
Expected behavior
I would expect the canvas to scroll with the page
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome
- Version: 117.0.5938.63 64 bits
Additional context
No response