Jelajahi Sumber

[ts] Resolve error when running npm install.

Luke Ingram 1 tahun lalu
induk
melakukan
73318d6c79
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      spine-ts/spine-player/src/PlayerEditor.ts

+ 1 - 1
spine-ts/spine-player/src/PlayerEditor.ts

@@ -112,7 +112,7 @@ body { margin: 0px; }
 				this.startPlayer();
 			});
 
-			codeElement.children[0].style.height = "100%";
+			(codeElement.children[0] as HTMLElement).style.height = "100%";
 			this.setCode(SpinePlayerEditor.DEFAULT_CODE);
 		})
 	}