@innovastudio/contentbox 1.6.158 → 1.6.159
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
@@ -154634,13 +154634,27 @@ class IframePanel {
|
|
154634
154634
|
}
|
154635
154635
|
|
154636
154636
|
setScreenMode(screenMode) {
|
154637
|
-
|
154637
|
+
if (!this.builder.win) {
|
154638
|
+
// If setScreenMode called on first load
|
154639
|
+
const contentView = this.editPanel.querySelector('.is-content-view');
|
154640
|
+
contentView.classList.add(screenMode);
|
154641
|
+
|
154642
|
+
if (screenMode === 'fullview') {
|
154643
|
+
document.body.classList.add('fullview');
|
154644
|
+
} else {
|
154645
|
+
document.body.classList.remove('fullview');
|
154646
|
+
}
|
154647
|
+
|
154648
|
+
return;
|
154649
|
+
} // this.builder.doc.querySelectorAll('.is-block').forEach(block=>{
|
154638
154650
|
// block.removeAttribute('data-prev'); // reset => initial call before resize(). Or just call start();
|
154639
154651
|
// block.removeAttribute('data-fluid');
|
154640
154652
|
// block.removeAttribute('data-fluid-val');
|
154641
154653
|
// block.classList.remove('fluid');
|
154642
154654
|
// block.style.transition = '';
|
154643
154655
|
// });
|
154656
|
+
|
154657
|
+
|
154644
154658
|
if (this.builder.win.Block) {
|
154645
154659
|
this.builder.win.Block.start();
|
154646
154660
|
this.builder.win.Block.resize();
|