diff --git a/src/utils/Sorter.js b/src/utils/Sorter.js index 0b93c162f..d89514d96 100644 --- a/src/utils/Sorter.js +++ b/src/utils/Sorter.js @@ -448,11 +448,18 @@ module.exports = Backbone.View.extend({ * @private */ styleInFlow(el, parent) { - var style = el.style; - var $el = $(el); + const style = el.style; + const $el = $(el); + const $parent = parent && $(parent); + if (style.overflow && style.overflow !== 'visible') return; if ($el.css('float') !== 'none') return; - if (parent && $(parent).css('display') == 'flex') return; + if ( + $parent && + $parent.css('display') == 'flex' && + $parent.css('flex-direction') !== 'column' + ) + return; switch (style.position) { case 'static': case 'relative':