1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 08:06:04 +02:00

Fixed autocomplete positioning code

This commit is contained in:
Brian Fiete 2020-05-25 14:56:40 -07:00
parent c69150e3bb
commit 323f984a72

View file

@ -1176,8 +1176,8 @@ namespace IDE.ui
BFApp.sApp.GetWorkspaceRect(out workspaceX, out workspaceY, out workspaceWidth, out workspaceHeight); BFApp.sApp.GetWorkspaceRect(out workspaceX, out workspaceY, out workspaceWidth, out workspaceHeight);
if (screenX + width > workspaceWidth) if (screenX + width > workspaceWidth)
screenX = workspaceWidth - width; screenX = workspaceWidth - width;
if (screenX < 0) if (screenX < workspaceX)
screenX = 0; screenX = workspaceX;
if (rootWidget == mAutoCompleteListWidget) if (rootWidget == mAutoCompleteListWidget)
{ {