Skip to content

Commit dadde72

Browse files
Kwaadpepperfnagel
authored andcommitted
Resizable: Fix CSP violation (style unsafe-inline)
1 parent 1e2f05b commit dadde72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/widgets/resizable.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ $.widget( "ui.resizable", $.ui.mouse, {
116116
if ( this.element[ 0 ].nodeName.match( /^(canvas|textarea|input|select|button|img)$/i ) ) {
117117

118118
this.element.wrap(
119-
$( "<div class='ui-wrapper' style='overflow: hidden;'></div>" ).css( {
119+
$( "<div class='ui-wrapper'></div>" ).css( {
120+
overflow: "hidden",
120121
position: this.element.css( "position" ),
121122
width: this.element.outerWidth(),
122123
height: this.element.outerHeight(),
@@ -718,7 +719,7 @@ $.widget( "ui.resizable", $.ui.mouse, {
718719

719720
if ( this._helper ) {
720721

721-
this.helper = this.helper || $( "<div style='overflow:hidden;'></div>" );
722+
this.helper = this.helper || $( "<div></div>" ).css( { overflow: "hidden" } );
722723

723724
this._addClass( this.helper, this._helper );
724725
this.helper.css( {

0 commit comments

Comments
 (0)