Apply width and height to windows
This commit is contained in:
parent
5a0d42d892
commit
4b2176552d
2 changed files with 6 additions and 2 deletions
|
@ -59,7 +59,9 @@ function initDocument(hx, w, h, t) {
|
||||||
<canvas id="canvas" width="300" height="200"></canvas>
|
<canvas id="canvas" width="300" height="200"></canvas>
|
||||||
</body>
|
</body>
|
||||||
</html>`,
|
</html>`,
|
||||||
true
|
true,
|
||||||
|
w,
|
||||||
|
h
|
||||||
);
|
);
|
||||||
|
|
||||||
newWindow.windowContent.contentWindow.addEventListener("load", () => {
|
newWindow.windowContent.contentWindow.addEventListener("load", () => {
|
||||||
|
|
|
@ -28,7 +28,9 @@ function initDocument(hx, w, h, t) {
|
||||||
<canvas id="canvas" width="1280" height="720"></canvas>
|
<canvas id="canvas" width="1280" height="720"></canvas>
|
||||||
</body>
|
</body>
|
||||||
</html>`,
|
</html>`,
|
||||||
true
|
true,
|
||||||
|
1280,
|
||||||
|
720
|
||||||
);
|
);
|
||||||
|
|
||||||
newWindow.windowContent.contentWindow.addEventListener("load", () => {
|
newWindow.windowContent.contentWindow.addEventListener("load", () => {
|
||||||
|
|
Loading…
Reference in a new issue