@hkdigital/lib-sveltekit 0.1.36 → 0.1.38
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.
@@ -78,12 +78,12 @@
|
|
78
78
|
const availWidth = windowWidth - marginLeft - marginRight;
|
79
79
|
const availHeight = windowHeight - marginTop - marginBottom;
|
80
80
|
|
81
|
-
console.
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
});
|
81
|
+
// console.debug('GameBox margins:', {
|
82
|
+
// marginLeft,
|
83
|
+
// marginRight,
|
84
|
+
// marginTop,
|
85
|
+
// marginBottom
|
86
|
+
// });
|
87
87
|
|
88
88
|
let gameAspect;
|
89
89
|
|
@@ -160,10 +160,10 @@
|
|
160
160
|
style:height="{gameHeight}px"
|
161
161
|
style:--game-width={gameWidth}
|
162
162
|
style:--game-height={gameHeight}
|
163
|
-
style:margin-left={marginLeft}
|
164
|
-
style:margin-right={marginRight}
|
165
|
-
style:margin-top={marginTop}
|
166
|
-
style:margin-bottom={marginBottom}
|
163
|
+
style:margin-left="{marginLeft}px"
|
164
|
+
style:margin-right="{marginRight}px"
|
165
|
+
style:margin-top="{marginTop}px"
|
166
|
+
style:margin-bottom="{marginBottom}px"
|
167
167
|
{style}
|
168
168
|
>
|
169
169
|
{#if isLandscape}
|