Skip to content

Commit 51ed17b

Browse files
committed
MC-5423: Scheduled Update slide out issues
- Fix full screen animations
1 parent b3df4d6 commit 51ed17b

File tree

1 file changed

+21
-17
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element

1 file changed

+21
-17
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/wysiwyg.js

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -150,24 +150,28 @@ define([
150150
}.bind(this));
151151

152152
events.on('stage:' + id + ':fullScreenModeChangeAfter', function (args) {
153-
if (this.isWithinModal && this.modal) {
154-
this.modal.css({
155-
transform: '',
156-
transition: ''
157-
});
158-
}
153+
if (!args.fullScreen) {
154+
if (this.isWithinModal && this.modal) {
155+
_.delay(function () {
156+
this.modal.css({
157+
transform: '',
158+
transition: ''
159+
});
160+
}.bind(this), 350);
161+
}
159162

160-
if (!args.fullScreen && this.wysiwygConfigData()['pagebuilder_button']) {
161-
// Force full screen mode whilst the animation occurs
162-
this.transitionOut(true);
163-
// Trigger animation out
164-
this.transition(false);
165-
166-
// Reset the transition out class and hide the stage
167-
_.delay(function () {
168-
this.transitionOut(false);
169-
this.visiblePageBuilder(false);
170-
}.bind(this), 185);
163+
if (this.wysiwygConfigData()['pagebuilder_button']) {
164+
// Force full screen mode whilst the animation occurs
165+
this.transitionOut(true);
166+
// Trigger animation out
167+
this.transition(false);
168+
169+
// Reset the transition out class and hide the stage
170+
_.delay(function () {
171+
this.transitionOut(false);
172+
this.visiblePageBuilder(false);
173+
}.bind(this), 185);
174+
}
171175
} else if (args.fullScreen) {
172176
if (this.isWithinModal && this.modal) {
173177
this.modal.css({

0 commit comments

Comments
 (0)