You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a fixed position node as the HTMLElement outputs a blob or data URL as expected. That same blob or data URL converted to a file is blank every time. If the browser is dragged to the size of the HTMLElement in question, it exports correctly.
Expected Behavior
Whichever specific node is used as the HTMLElement, would be respected no matter it's position in the dom.
Current Behavior
Fixed position HTMLElement ignored, instead, the package attempts to use the entire, it seems.
Steps To Reproduce
1.) Position an HTMLElement fixed, try to use this package to export it properly.
2.) Thats it.
Additional Context
If the browser is dragged to the size of the HTMLElement in question, it exports correctly, see image 1 where I dragged it halfway to show the cutoff. See image 2 to show the typical export on a fixed element.
Image 1: Image 2:
Your Environment
html-to-image: 1.11.11
OS: macOS Sonoma 14.1.1
Browser: Chrome 122.0.6261.128
The text was updated successfully, but these errors were encountered:
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Using a fixed position node as the HTMLElement outputs a blob or data URL as expected. That same blob or data URL converted to a file is blank every time. If the browser is dragged to the size of the HTMLElement in question, it exports correctly.
Expected Behavior
Whichever specific node is used as the HTMLElement, would be respected no matter it's position in the dom.
Current Behavior
Fixed position HTMLElement ignored, instead, the package attempts to use the entire, it seems.
Steps To Reproduce
1.) Position an HTMLElement fixed, try to use this package to export it properly.
2.) Thats it.
Additional Context
If the browser is dragged to the size of the HTMLElement in question, it exports correctly, see image 1 where I dragged it halfway to show the cutoff. See image 2 to show the typical export on a fixed element.
Image 1:
Image 2:
Your Environment
The text was updated successfully, but these errors were encountered: