@kdcloudjs/table 1.2.1-canary.1 → 1.2.1-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.js +2 -3
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +2 -2
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/es/table/pipeline/features/contextMenu.js +1 -2
- package/lib/table/pipeline/features/contextMenu.js +1 -2
- package/package.json +1 -1
|
@@ -344,8 +344,7 @@ function keepWithinBounds(popupParent, ePopup, x, y) {
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
if (y) {
|
|
347
|
-
var
|
|
348
|
-
var maxY = parentHeight - minHeight;
|
|
347
|
+
var maxY = parentHeight - ePopupRect.height;
|
|
349
348
|
y = Math.min(Math.max(y, 0), Math.abs(maxY)); // 目前位置,最大支持的位置
|
|
350
349
|
}
|
|
351
350
|
|
|
@@ -380,8 +380,7 @@ function keepWithinBounds(popupParent, ePopup, x, y) {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
if (y) {
|
|
383
|
-
var
|
|
384
|
-
var maxY = parentHeight - minHeight;
|
|
383
|
+
var maxY = parentHeight - ePopupRect.height;
|
|
385
384
|
y = Math.min(Math.max(y, 0), Math.abs(maxY)); // 目前位置,最大支持的位置
|
|
386
385
|
}
|
|
387
386
|
|