File tree Expand file tree Collapse file tree 3 files changed +5
-52
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web Expand file tree Collapse file tree 3 files changed +5
-52
lines changed Original file line number Diff line number Diff line change 72
72
}
73
73
}
74
74
75
- .mce-tinymce-inline.mce-arrow.mce-container.mce-floatpanel :not (.mce-arrow-up ) {
76
- transform : translateY (30px ); // table toolbar position fix
77
- }
75
+ .mce-tinymce-inline.mce-arrow.mce-container.mce-floatpanel [aria- label= " Inline toolbar" ] {
76
+ transition : transform 200ms ;
78
77
79
- .mce-tinymce-inline.mce-arrow.mce-container.mce-floatpanel.mce-arrow-up {
80
- transform : translateY (0 ) !important ;
78
+ & :not (.mce-arrow-up ):not (.mce-arrow-down ) {
79
+ transform : translate (-1px , -36px ); // table toolbar position fix
80
+ }
81
81
}
Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ export default class Wysiwyg implements WysiwygInterface {
168
168
. css ( "min-width" , this . config . adapter_config . minToolbarWidth + "px" ) ;
169
169
170
170
this . invertInlineEditorToAccommodateOffscreenToolbar ( ) ;
171
- this . setStyleOnTableToolbar ( ) ;
172
171
} ) ;
173
172
}
174
173
@@ -178,9 +177,6 @@ export default class Wysiwyg implements WysiwygInterface {
178
177
private onChangeContent ( ) {
179
178
this . saveContentDebounce ( ) ;
180
179
this . invertInlineEditorToAccommodateOffscreenToolbar ( ) ;
181
- _ . defer ( ( ) => {
182
- this . setStyleOnTableToolbar ( ) ;
183
- } ) ;
184
180
}
185
181
186
182
/**
@@ -246,21 +242,4 @@ export default class Wysiwyg implements WysiwygInterface {
246
242
private getFixedToolbarContainer ( ) {
247
243
return $ ( `#${ this . elementId } ` ) . closest ( `${ this . config . adapter . settings . fixed_toolbar_container } ` ) ;
248
244
}
249
-
250
- /**
251
- * Adjust table toolbar position, when editor container is smaller than toolbar
252
- */
253
- private setStyleOnTableToolbar ( ) {
254
- if ( this . config . adapter_config . mode !== "inline" ) {
255
- return ;
256
- }
257
-
258
- const $tableToolbar = $ ( ".mce-tinymce-inline.mce-arrow.mce-floatpanel:not(.mce-arrow-up)" ) ;
259
-
260
- if ( ! $tableToolbar . length ) {
261
- return ;
262
- }
263
-
264
- $tableToolbar . css ( "transform" , "translateY(" + this . getFixedToolbarContainer ( ) . height ( ) + "px)" ) ;
265
- }
266
245
}
You can’t perform that action at this time.
0 commit comments