Skip to content

Commit 0c271c3

Browse files
author
Hwashiang Yu
committed
MC-4132: Couldnt open pagebuilder on product schedule update page
- Updated style to allow remove of transform style via class - Updated event listener to add and remove transform class on initiate fullscreen
1 parent 7e43bb1 commit 0c271c3

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/modal/_dismissible.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
// * See COPYING.txt for license details.
44
// */
55

6+
7+
.modal-slide .modal-inner-wrap {
8+
&.un-transform {
9+
transform: none;
10+
}
11+
}
12+
613
.modal-popup .modal-dnsa {
714
padding: 2.4rem 0 0;
815

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
*/
55

66
define([
7+
'jquery',
78
'Magento_Ui/js/form/element/wysiwyg',
89
'mage/translate',
910
'Magento_PageBuilder/js/events',
1011
'Magento_PageBuilder/js/page-builder'
11-
], function (Wysiwyg, $t, events, PageBuilder) {
12+
], function (jquery, Wysiwyg, $t, events, PageBuilder) {
1213
'use strict';
1314

1415
/**
@@ -81,8 +82,14 @@ define([
8182
events.on('stage:' + id + ':fullScreenModeChangeAfter', function (args) {
8283
if (!args.fullScreen && this.wysiwygConfigData()['pagebuilder_button']) {
8384
this.visiblePageBuilder(false);
85+
if (jquery('#' + id).parents('aside').length) {
86+
jquery('#' + id).parents('.modal-inner-wrap').removeClass('un-transform');
87+
}
8488
} else if (args.fullScreen && this.wysiwygConfigData()['pagebuilder_button']) {
8589
this.visiblePageBuilder(true);
90+
if (jquery('#' + id).parents('aside').length) {
91+
jquery('#' + id).parents('.modal-inner-wrap').addClass('un-transform');
92+
}
8693
}
8794
}.bind(this));
8895
}

0 commit comments

Comments
 (0)