diff options
author | Jérémy Munsch <github@jeremydev.ovh> | 2020-06-19 08:45:00 +0200 |
---|---|---|
committer | Felix Nagel <fnagel@users.noreply.github.com> | 2020-08-11 23:43:45 +0200 |
commit | dadde722a40ee41bd721e7d4609ee190815055c2 (patch) | |
tree | bd7a08994342274f7a96794adc387aee7bda5b37 | |
parent | 1e2f05bc2ab101c9762ade9fa1dd4a130af89c65 (diff) | |
download | jquery-ui-dadde722a40ee41bd721e7d4609ee190815055c2.tar.gz jquery-ui-dadde722a40ee41bd721e7d4609ee190815055c2.zip |
Resizable: Fix CSP violation (style unsafe-inline)
-rw-r--r-- | ui/widgets/resizable.js | 5 |
1 files changed, 3 insertions, 2 deletions
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( - $( "<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(), @@ -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( { |