@hkdigital/lib-sveltekit 0.1.35 → 0.1.37

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,6 +78,13 @@
78
78
  const availWidth = windowWidth - marginLeft - marginRight;
79
79
  const availHeight = windowHeight - marginTop - marginBottom;
80
80
 
81
+ console.log('GameBox margins:', {
82
+ marginLeft,
83
+ marginRight,
84
+ marginTop,
85
+ marginBottom
86
+ });
87
+
81
88
  let gameAspect;
82
89
 
83
90
  if (availWidth > availHeight) {
@@ -153,10 +160,10 @@
153
160
  style:height="{gameHeight}px"
154
161
  style:--game-width={gameWidth}
155
162
  style:--game-height={gameHeight}
156
- style:margin-left={marginLeft}
157
- style:margin-right={marginRight}
158
- style:margin-top={marginTop}
159
- 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"
160
167
  {style}
161
168
  >
162
169
  {#if isLandscape}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"