From 012f093d268dc48a6d5ddfe328ad4d0c7ca5dac3 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 1 Feb 2021 16:54:31 -0800 Subject: [PATCH] Make sure drop shadow doesn't go off edge of screen --- IDE/src/ui/HoverWatch.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDE/src/ui/HoverWatch.bf b/IDE/src/ui/HoverWatch.bf index 0bf761a7..50247f85 100644 --- a/IDE/src/ui/HoverWatch.bf +++ b/IDE/src/ui/HoverWatch.bf @@ -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);