File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/PageBuilder/view/frontend/web/js/content-type/buttons/appearance/inline Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,25 @@ define([
14
14
*/
15
15
var equalizeButtonWidth = function ( buttonList ) {
16
16
var buttonMinWidth = 0 ;
17
-
17
+ buttonList . css ( 'min-width' , buttonMinWidth ) ;
18
18
buttonList . each ( function ( ) {
19
19
var buttonWidth = this . offsetWidth ;
20
20
21
21
if ( buttonWidth > buttonMinWidth ) {
22
22
buttonMinWidth = buttonWidth ;
23
23
}
24
24
} ) ;
25
- buttonList . css ( 'width' , buttonMinWidth ) ;
25
+ buttonList . css ( 'min- width' , buttonMinWidth ) ;
26
26
} ;
27
27
28
28
return function ( config , element ) {
29
29
var $element = $ ( element ) ;
30
30
31
31
if ( $element . data ( 'sameWidth' ) ) {
32
32
equalizeButtonWidth ( $element . find ( '[data-element="link"]' ) ) ;
33
+ $ ( window ) . resize ( function ( ) {
34
+ equalizeButtonWidth ( $element . find ( '[data-element="link"]' ) ) ;
35
+ } ) ;
33
36
}
34
37
} ;
35
38
} ) ;
You can’t perform that action at this time.
0 commit comments