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:
parent
c69150e3bb
commit
323f984a72
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue