|
|
@ -274,11 +274,12 @@ define([
|
|
|
|
var pos = sel.pos;
|
|
|
|
var pos = sel.pos;
|
|
|
|
var l = $content[0].querySelectorAll('.element:not(.selected):not(.header)');
|
|
|
|
var l = $content[0].querySelectorAll('.element:not(.selected):not(.header)');
|
|
|
|
var p, el;
|
|
|
|
var p, el;
|
|
|
|
|
|
|
|
var offset = getViewMode() === "grid" ? 10 : 0;
|
|
|
|
for (var i = 0; i < l.length; i++) {
|
|
|
|
for (var i = 0; i < l.length; i++) {
|
|
|
|
el = l[i];
|
|
|
|
el = l[i];
|
|
|
|
p = $(el).position();
|
|
|
|
p = $(el).position();
|
|
|
|
p.top += 10 + $content.scrollTop();
|
|
|
|
p.top += offset + $content.scrollTop();
|
|
|
|
p.left += 10;
|
|
|
|
p.left += offset;
|
|
|
|
p.bottom = p.top + $(el).outerHeight();
|
|
|
|
p.bottom = p.top + $(el).outerHeight();
|
|
|
|
p.right = p.left + $(el).outerWidth();
|
|
|
|
p.right = p.left + $(el).outerWidth();
|
|
|
|
if (p.right < pos.left || p.left > pos.right
|
|
|
|
if (p.right < pos.left || p.left > pos.right
|
|
|
|