File tree Expand file tree Collapse file tree 1 file changed +21
-17
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -150,24 +150,28 @@ define([
150
150
} . bind ( this ) ) ;
151
151
152
152
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
+ }
159
162
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
+ }
171
175
} else if ( args . fullScreen ) {
172
176
if ( this . isWithinModal && this . modal ) {
173
177
this . modal . css ( {
You can’t perform that action at this time.
0 commit comments