Skip to content

Commit

Permalink
Update image.ts (#15268)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW authored Jul 12, 2024
1 parent 9e126c3 commit 66f7ce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dev/gui/src/2D/controls/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ export class Image extends Control {
if (imgElement.style && this._source?.endsWith(".svg")) {
imgElement.style.visibility = "hidden";
imgElement.style.position = "absolute";
imgElement.style.top = "0";
engine.getRenderingCanvas()?.parentNode?.appendChild(imgElement);
addedToDom = true;
}
Expand Down

0 comments on commit 66f7ce8

Please sign in to comment.