Commit 6b20364c authored by ibuler's avatar ibuler

[Update] 修复最下面的资产右击弹窗无法显示文件管理的菜单

parent 10a202c6
{ {
"name": "luna", "name": "luna",
"version": "1.4.7", "version": "1.5.2",
"license": "GPLv3", "license": "GPLv3",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
......
...@@ -151,6 +151,10 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -151,6 +151,10 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
} }
showRMenu(left, top) { showRMenu(left, top) {
const clientHeight = document.body.clientHeight;
if (top + 60 > clientHeight) {
top -= 60;
}
this.pos.left = left + 'px'; this.pos.left = left + 'px';
this.pos.top = top + 'px'; this.pos.top = top + 'px';
this.isShowRMenu = true; this.isShowRMenu = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment