@operato/scene-grist 7.0.1 → 7.3.7

Sign up to get free protection for your applications and to get access to all the features.
package/src/grist.ts CHANGED
@@ -274,6 +274,14 @@ export default class SceneGrist extends HTMLOverlayElement {
274
274
  * 변화에 따른 기본적인 html 속성이 super.reposition()에서 진행되고, 그 밖의 작업이 필요할 때, 오버라이드 한다.
275
275
  */
276
276
  reposition() {
277
+ const { fillStyle } = this.state
278
+
279
+ if (!fillStyle) {
280
+ this.grist?.style.setProperty('--grist-background-color', 'var(--md-sys-color-surface, #f7f6f4)')
281
+ } else {
282
+ this.grist?.style.removeProperty('--grist-background-color')
283
+ }
284
+
277
285
  super.reposition()
278
286
  }
279
287