Closed Kathleen-Xu closed 2 weeks ago
When saving the workflow as a PNG, a white area appears (bug). #359
The dependency library has adjusted the size of background image on high DPI devices, as shown in the image below.
One of the solution is to adjust the size of canvas when saving images(modify the function updateView).
updateView
(This issue can also be fixed by temporarily setting window.devicePixelRatio to 1, but it may not seem like a good idea.)
Issue
When saving the workflow as a PNG, a white area appears (bug). #359
Cause
The dependency library has adjusted the size of background image on high DPI devices, as shown in the image below.
Solution
One of the solution is to adjust the size of canvas when saving images(modify the function
updateView
).(This issue can also be fixed by temporarily setting window.devicePixelRatio to 1, but it may not seem like a good idea.)