@operato/board 1.4.76 → 1.4.78

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": "@operato/board",
3
- "version": "1.4.76",
3
+ "version": "1.4.78",
4
4
  "description": "Webcomponent for board following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -88,16 +88,16 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@open-wc/scoped-elements": "^2.0.0-next.6",
91
- "@operato/app": "^1.4.76",
92
- "@operato/data-grist": "^1.4.64",
93
- "@operato/font": "^1.4.76",
91
+ "@operato/app": "^1.4.78",
92
+ "@operato/data-grist": "^1.4.77",
93
+ "@operato/font": "^1.4.78",
94
94
  "@operato/graphql": "^1.4.76",
95
95
  "@operato/i18n": "^1.4.64",
96
96
  "@operato/input": "^1.4.64",
97
97
  "@operato/layout": "^1.4.76",
98
98
  "@operato/markdown": "^1.4.64",
99
99
  "@operato/popup": "^1.4.64",
100
- "@operato/property-editor": "^1.4.76",
100
+ "@operato/property-editor": "^1.4.77",
101
101
  "@operato/styles": "^1.4.64",
102
102
  "@operato/utils": "^1.4.64",
103
103
  "@polymer/paper-dropdown-menu": "^3.2.0",
@@ -148,5 +148,5 @@
148
148
  "prettier --write"
149
149
  ]
150
150
  },
151
- "gitHead": "bfd768b684aaaeb5bf92aee141666110cba64b2a"
151
+ "gitHead": "ee4c6752557f71c18a16aef8a0c5724f65a25b5b"
152
152
  }
@@ -182,12 +182,16 @@ export class BoardViewer extends LitElement {
182
182
  `
183
183
  }
184
184
 
185
+ private resizeHandler = () => {
186
+ this._scene && this._scene.fit()
187
+ }
188
+
185
189
  connectedCallback() {
186
190
  super.connectedCallback()
187
191
 
188
- window.addEventListener('resize', () => {
189
- this._scene && this._scene.fit()
190
- })
192
+ window.addEventListener('resize', this.resizeHandler)
193
+
194
+ window.addEventListener('orientationchange', this.resizeHandler)
191
195
 
192
196
  this.renderRoot.addEventListener(
193
197
  'close-scene',
@@ -200,6 +204,9 @@ export class BoardViewer extends LitElement {
200
204
  }
201
205
 
202
206
  disconnectedCallback() {
207
+ window.removeEventListener('resize', this.resizeHandler)
208
+ window.removeEventListener('orientationchange', this.resizeHandler)
209
+
203
210
  super.disconnectedCallback()
204
211
 
205
212
  this.closeScene()