Browse Source

Adjust sorter placeholder when the parent has flex direction as column. Fixes #1626

pull/1656/head
Artur Arseniev 8 years ago
parent
commit
b5692b6ce6
  1. 13
      src/utils/Sorter.js

13
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':

Loading…
Cancel
Save