|
|
@ -66,7 +66,7 @@ export class GetKeyWordsServices implements EditorService
|
|
|
|
//更新上下文菜单的位置
|
|
|
|
//更新上下文菜单的位置
|
|
|
|
private UpdateContextMenuPosition()
|
|
|
|
private UpdateContextMenuPosition()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let menuHeight = this.keywordList.length * MENU_ITEM_HEIGHT + MENU_PADDING;
|
|
|
|
let menuHeight = Math.min(window.innerHeight, this.keywordList.length * MENU_ITEM_HEIGHT + MENU_PADDING);
|
|
|
|
|
|
|
|
|
|
|
|
if (this.ed.MouseCtrl._CurMousePointClient.y > window.innerHeight - menuHeight)
|
|
|
|
if (this.ed.MouseCtrl._CurMousePointClient.y > window.innerHeight - menuHeight)
|
|
|
|
this.mousePositionY = this.ed.MouseCtrl._CurMousePointClient.y - menuHeight;
|
|
|
|
this.mousePositionY = this.ed.MouseCtrl._CurMousePointClient.y - menuHeight;
|
|
|
|