mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
ENH: fix some color again
Change-Id: I8d06c7859cdcb232b0625ef1c22e562253be4dcf (cherry picked from commit 32d143fe029e36715231156ce857fd841a4a3748)
This commit is contained in:
@@ -203,6 +203,7 @@ function ShowRecentFileList( pList )
|
||||
|
||||
function ShowRecnetFileContextMenu()
|
||||
{
|
||||
$("#recnet_context_menu").offset({top: 10000, left:-10000});
|
||||
$('#recnet_context_menu').show();
|
||||
|
||||
let ContextMenuWidth=$('#recnet_context_menu').width();
|
||||
@@ -214,10 +215,10 @@ function ShowRecnetFileContextMenu()
|
||||
let RealX=MousePosX;
|
||||
let RealY=MousePosY;
|
||||
|
||||
if( MousePosX + ContextMenuWidth >DocumentWidth )
|
||||
RealX=MousePosX-ContextMenuWidth;
|
||||
if( MousePosY+ContextMenuHeight>DocumentHeight )
|
||||
RealY=MousePosY-ContextMenuHeight;
|
||||
if( MousePosX + ContextMenuWidth + 24 >DocumentWidth )
|
||||
RealX=DocumentWidth-ContextMenuWidth-24;
|
||||
if( MousePosY+ContextMenuHeight+24>DocumentHeight )
|
||||
RealY=DocumentHeight-ContextMenuHeight-24;
|
||||
|
||||
$("#recnet_context_menu").offset({top: RealY, left:RealX});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user