From b5692b6ce6555baf18921cd26ecfe6ee0b2fe5c9 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 7 Dec 2018 11:40:05 +0100 Subject: [PATCH] Adjust sorter placeholder when the parent has flex direction as column. Fixes #1626 --- src/utils/Sorter.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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':