@innovastudio/contentbox 1.4.28 → 1.4.29
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
@@ -476,10 +476,15 @@
|
|
476
476
|
/* setting display=none makes initial script may not work properly */
|
477
477
|
transform-origin: top;
|
478
478
|
}
|
479
|
-
|
480
479
|
.is-wrapper.is-edit {
|
481
480
|
padding-left: 60px;
|
482
481
|
}
|
482
|
+
.is-wrapper .transition-edit.is-section {
|
483
|
+
transition: all 0.2s ease !important;
|
484
|
+
}
|
485
|
+
.is-wrapper .transition-edit .is-box {
|
486
|
+
transition: all 0.2s ease !important;
|
487
|
+
}
|
483
488
|
|
484
489
|
#_cbhtml {
|
485
490
|
height: 0px;
|
@@ -3838,8 +3838,16 @@ class EditSection {
|
|
3838
3838
|
btnSectionHeight.forEach(btn => {
|
3839
3839
|
btn.addEventListener('click', () => {
|
3840
3840
|
this.builder.editor.saveForUndo();
|
3841
|
-
let val = btn.getAttribute('data-value');
|
3842
|
-
|
3841
|
+
let val = btn.getAttribute('data-value'); // this.sectionHeight(val);
|
3842
|
+
|
3843
|
+
const activeSection = this.builder.activeSection;
|
3844
|
+
activeSection.classList.add('transition-edit');
|
3845
|
+
setTimeout(() => {
|
3846
|
+
this.sectionHeight(val);
|
3847
|
+
setTimeout(() => {
|
3848
|
+
activeSection.classList.remove('transition-edit');
|
3849
|
+
}, 200);
|
3850
|
+
}, 10);
|
3843
3851
|
let btns = modalEditSection.querySelectorAll('.cmd-section-height');
|
3844
3852
|
btns.forEach(btn => {
|
3845
3853
|
dom$k.removeClass(btn, 'on');
|
@@ -4406,8 +4414,7 @@ class EditSection {
|
|
4406
4414
|
} //Trigger Render event
|
4407
4415
|
|
4408
4416
|
|
4409
|
-
this.builder.settings.onRender();
|
4410
|
-
this.builder.scrollTo(activeSection, 600);
|
4417
|
+
this.builder.settings.onRender(); // this.builder.scrollTo(activeSection, 600);
|
4411
4418
|
}
|
4412
4419
|
|
4413
4420
|
boxSpacing(s) {
|
@@ -10234,15 +10241,31 @@ class EditBox {
|
|
10234
10241
|
modalEditBox.querySelector('#tabBoxGeneral').click();
|
10235
10242
|
const btnBoxSmaller = modalEditBox.querySelector('.cmd-box-smaller');
|
10236
10243
|
btnBoxSmaller.addEventListener('click', () => {
|
10237
|
-
this.builder.editor.saveForUndo();
|
10238
|
-
|
10244
|
+
this.builder.editor.saveForUndo(); // this.boxWidthSmaller();
|
10245
|
+
|
10246
|
+
const activeSection = this.builder.activeSection;
|
10247
|
+
activeSection.classList.add('transition-edit');
|
10248
|
+
setTimeout(() => {
|
10249
|
+
this.boxWidthSmaller();
|
10250
|
+
setTimeout(() => {
|
10251
|
+
activeSection.classList.remove('transition-edit');
|
10252
|
+
}, 200);
|
10253
|
+
}, 10); //Trigger Change event
|
10239
10254
|
|
10240
10255
|
this.builder.settings.onChange();
|
10241
10256
|
});
|
10242
10257
|
const btnBoxLarger = modalEditBox.querySelector('.cmd-box-larger');
|
10243
10258
|
btnBoxLarger.addEventListener('click', () => {
|
10244
|
-
this.builder.editor.saveForUndo();
|
10245
|
-
|
10259
|
+
this.builder.editor.saveForUndo(); // this.boxWidthLarger();
|
10260
|
+
|
10261
|
+
const activeSection = this.builder.activeSection;
|
10262
|
+
activeSection.classList.add('transition-edit');
|
10263
|
+
setTimeout(() => {
|
10264
|
+
this.boxWidthLarger();
|
10265
|
+
setTimeout(() => {
|
10266
|
+
activeSection.classList.remove('transition-edit');
|
10267
|
+
}, 200);
|
10268
|
+
}, 10); //Trigger Change event
|
10246
10269
|
|
10247
10270
|
this.builder.settings.onChange();
|
10248
10271
|
});
|