Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Build: Tests fix
  • Loading branch information
mgol committed Jun 2, 2021
commit 27351b8e766438a79c259d4e81cbf7598ffdd2e8
12 changes: 9 additions & 3 deletions ui/widgets/resizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,15 @@ $.widget( "ui.resizable", $.ui.mouse, {
// TODO: determine which cases actually cause this to happen
// if the element doesn't have the scroll set, see if it's possible to
// set the scroll
el[ scroll ] = 1;
has = ( el[ scroll ] > 0 );
el[ scroll ] = 0;
try {
el[ scroll ] = 1;
has = ( el[ scroll ] > 0 );
el[ scroll ] = 0;
} catch ( e ) {

// `el` might be a string, then setting `scroll` will throw
// an error in strict mode; ignore it.
}
return has;
},

Expand Down