From af0de298462fd2046a19f641b263bc7f11be13a2 Mon Sep 17 00:00:00 2001 From: joyqat Date: Wed, 12 Aug 2020 14:19:28 +0800 Subject: [PATCH] fix: jsxgrph: typo in size --- layouts/partials/script/single-script.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index 0a87c80..be0c4d3 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -639,7 +639,7 @@ var size = x.getAttribute('data-lang').split('x'); if (size && size.length == 2) { var w = parseInt(size[0], 10); - var h = parseInt(size[0], 10); + var h = parseInt(size[1], 10); if (!(isNaN(w) || isNaN(h))) { board.resizeContainer(w, h); }