From 3526e7f3e2a5f18c91591874d50827d1ad9fa471 Mon Sep 17 00:00:00 2001 From: CBenni Date: Tue, 3 Nov 2015 18:12:57 +0100 Subject: [PATCH] Sortable: Improved compatibility with flexbox Added detection for flexbox into _isFloating, which improves the detection of where an item is moved to Ref: #9344 --- ui/widgets/sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/sortable.js b/ui/widgets/sortable.js index 8920ed9674d..e941d709eac 100644 --- a/ui/widgets/sortable.js +++ b/ui/widgets/sortable.js @@ -82,7 +82,7 @@ return $.widget( "ui.sortable", $.ui.mouse, { }, _isFloating: function( item ) { - return ( /left|right/ ).test( item.css( "float" ) ) || ( /inline|table-cell/ ).test( item.css( "display" ) ); + return ( /left|right/ ).test( item.css( "float" ) ) || ( /inline|table-cell/ ).test( item.css( "display" ) ) || ( /flex/ ).test( this.element.css( "display" ) ); }, _create: function() {