app
Component Widgets
Public Made by Adomby adom
Reusable component widgets for pinouts, thermal vias, molecule relationships, reviewed chip outlines and lightweight four-level LOD cache listings.
← Commit history
Merge PR #219: adom-3d: no inner scrollbar in the wiki frame
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();