mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Resizable: Fix CSP violation (style unsafe-inline)
This commit is contained in:
parent
1e2f05bc2a
commit
dadde722a4
@ -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( {
|
||||
|
Loading…
Reference in New Issue
Block a user