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:
parent
d635b8e67f
commit
757464db3e
12 changed files with 21 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue