From: Jérémy Munsch Date: Fri, 19 Jun 2020 06:45:00 +0000 (+0200) Subject: Resizable: Fix CSP violation (style unsafe-inline) X-Git-Tag: 1.13.0-alpha.1~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dadde722a40ee41bd721e7d4609ee190815055c2;p=jquery-ui.git Resizable: Fix CSP violation (style unsafe-inline) --- diff --git a/ui/widgets/resizable.js b/ui/widgets/resizable.js index cb0b1b11d..222c93a5e 100644 --- a/ui/widgets/resizable.js +++ b/ui/widgets/resizable.js @@ -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( - $( "
" ).css( { + $( "
" ).css( { + overflow: "hidden", position: this.element.css( "position" ), width: this.element.outerWidth(), height: this.element.outerHeight(), @@ -718,7 +719,7 @@ $.widget( "ui.resizable", $.ui.mouse, { if ( this._helper ) { - this.helper = this.helper || $( "
" ); + this.helper = this.helper || $( "
" ).css( { overflow: "hidden" } ); this._addClass( this.helper, this._helper ); this.helper.css( {