瀏覽代碼

HUE-8154 [dashboard] Dropping on the center of a widget should behave as southern edge drop

Enrico Berti 7 年之前
父節點
當前提交
ba157b9
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

+ 1 - 4
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -3952,12 +3952,9 @@ $(document).ready(function () {
               overlapZoneSideToSide = 'E';
             }
 
-             if (coords.row < dimensions.row + sidesHeight) {
+            if (coords.row < dimensions.row + sidesHeight) {
               overlapZoneTopDown = 'N';
             }
-            else if (coords.row >= (dimensions.row + sidesHeight) && coords.row < (dimensions.row + sidesHeight + centerHeight)) {
-              overlapZoneTopDown = '';
-            }
             else {
               overlapZoneTopDown = 'S';
             }