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

Fixed popup location clipping

This commit is contained in:
Brian Fiete 2020-03-30 12:17:24 -07:00
parent d635b8e67f
commit 757464db3e
12 changed files with 21 additions and 13 deletions

View file

@ -1044,9 +1044,12 @@ namespace IDE.ui
mTargetEditWidget.Content.GetTextCoordAtCursor(var cursorX, var cursorY);
if (!mInvokeWidget.mIsAboveText)
if (mInvokeWidget?.mIsAboveText != true)
y = Math.Max(y, cursorY + gApp.mCodeFont.GetHeight() * 0.0f);
/*if (cursorY > y + gApp.mCodeFont.GetHeight() * 2.5f)
y = cursorY;*/
float screenX;
float screenY;
mTargetEditWidget.Content.SelfToRootTranslate(x, y, out screenX, out screenY);