@everymatrix/casino-game-page 1.13.0 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-game-page",
|
3
|
-
"version": "1.13.
|
3
|
+
"version": "1.13.2",
|
4
4
|
"main": "dist/casino-game-page.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -35,5 +35,5 @@
|
|
35
35
|
"publishConfig": {
|
36
36
|
"access": "public"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "97c6431698aa270f6d350dc219614df9a401b83d"
|
39
39
|
}
|
@@ -352,12 +352,9 @@
|
|
352
352
|
const iframeRatio = game.width/(game.height + 100);
|
353
353
|
|
354
354
|
|
355
|
-
gameFrameWidth = parseInt(game.width);
|
355
|
+
gameFrameWidth = parseInt(game.width) * iframeRatio;
|
356
356
|
gameFrameHeight = parseInt(game.height);
|
357
357
|
|
358
|
-
// resize logic for maintaining game ratio when resizing
|
359
|
-
gameFrameWidth = gameContainerWidth * iframeRatio;
|
360
|
-
|
361
358
|
definitiveIframeWidth = gameFrameWidth ? `${Math.floor(gameFrameWidth)}px` : "1280px";
|
362
359
|
definitiveIframeHeight = gameFrameHeight ? `${Math.floor(gameFrameHeight)}px` : "720px";
|
363
360
|
|