1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Make sure drop shadow doesn't go off edge of screen

This commit is contained in:
Brian Fiete 2021-02-01 16:54:31 -08:00
parent b220599ec7
commit 012f093d26

View file

@ -1227,7 +1227,7 @@ namespace IDE.ui
float popupY = listView.mRequestPos.Value.y;
int screenX = (int)popupX + (int)mOrigScreenX;
int maxWidth = workspaceWidth - screenX;
int maxWidth = workspaceWidth - screenX - GS!(8);
if (mTextPanel != null)
{
maxWidth = Math.Min(maxWidth, mTextPanel.mWidgetWindow.mWindowWidth);