Skip to content

Commit

Permalink
Resizable: Fix CSP violation (style unsafe-inline)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwaadpepper authored and fnagel committed Aug 11, 2020
1 parent 1e2f05b commit dadde72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/widgets/resizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ $.widget( "ui.resizable", $.ui.mouse, {
if ( this.element[ 0 ].nodeName.match( /^(canvas|textarea|input|select|button|img)$/i ) ) {

this.element.wrap(
$( "<div class='ui-wrapper' style='overflow: hidden;'></div>" ).css( {
$( "<div class='ui-wrapper'></div>" ).css( {
overflow: "hidden",
position: this.element.css( "position" ),
width: this.element.outerWidth(),
height: this.element.outerHeight(),
Expand Down Expand Up @@ -718,7 +719,7 @@ $.widget( "ui.resizable", $.ui.mouse, {

if ( this._helper ) {

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

this._addClass( this.helper, this._helper );
this.helper.css( {
Expand Down

0 comments on commit dadde72

Please sign in to comment.