(flutter) (web) only set position/zIndex for canvas if createCanvas is true
This commit is contained in:
@@ -86,8 +86,10 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform {
|
|||||||
// canvas.style.display = "none";
|
// canvas.style.display = "none";
|
||||||
document.body!.appendChild(canvas);
|
document.body!.appendChild(canvas);
|
||||||
|
|
||||||
(canvas as HTMLElement).style.position = "fixed";
|
if (options.createCanvas) {
|
||||||
(canvas as HTMLElement).style.zIndex = "-1";
|
(canvas as HTMLElement).style.position = "fixed";
|
||||||
|
(canvas as HTMLElement).style.zIndex = "-1";
|
||||||
|
}
|
||||||
|
|
||||||
final config = FFIFilamentConfig(
|
final config = FFIFilamentConfig(
|
||||||
backend: Backend.OPENGL,
|
backend: Backend.OPENGL,
|
||||||
|
|||||||
Reference in New Issue
Block a user