← Commit history

Merge PR #219: adom-3d: no inner scrollbar in the wiki frame

John Lauer ·7e63116724 ·9d ago ·parent 97252c9
1 file changed +2
widgets/model-3d-widget.js+2
@@ -53,6 +53,8 @@     connectedCallback() {       if (this._init) return; this._init = true;       this.attachShadow({ mode: 'open' });+      // in a wiki frame: no page margin, and nothing the viewer adds (its tip bubble) may give the frame a scrollbar+      if (window.self !== window.top) { document.documentElement.style.overflow = 'hidden'; document.body.style.margin = '0'; }       this._src = this.getAttribute('src');       this._poster = this.getAttribute('poster');       this._idle();