Browse Source

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/CocoRoboDesktop

zengyicheng 2 years ago
parent
commit
488107e4f2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      js/Desktop/DeskTop.js

+ 3 - 3
js/Desktop/DeskTop.js

@@ -460,8 +460,8 @@ U.MD.D.iconUp = function(el) {
         _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
     if (_positioninfo["OT"] > 15) {
         //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
-        _margin = ((_positioninfo["OT"] - 15) % 115 > 55 && _positioninfo["OT"] + 115 < US.height) ? 1 : 0;
-        _top = (Math.floor((_positioninfo["OT"] - 15) / 115) + _margin) * 115 + 15;
+        _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
+        _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
     }
     if (_positioninfo["OL"] > 20) {
         //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
@@ -471,7 +471,7 @@ U.MD.D.iconUp = function(el) {
     //while循环判断么一个重叠的元素
     do {
         _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
-        _top = _positioninfo[0] + 115; //得到定位后的top
+        _top = _positioninfo[0] + 95; //得到定位后的top
         _left = _positioninfo[1]; //得到定位后的left
     } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
 }