mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge pull request #889 from bttelle/hover-multi-monitor
Fix HoverWatch handling of multiple-monitors
This commit is contained in:
commit
e5de60c87f
1 changed files with 9 additions and 3 deletions
|
@ -1221,13 +1221,19 @@ namespace IDE.ui
|
|||
int workspaceY;
|
||||
int workspaceWidth;
|
||||
int workspaceHeight;
|
||||
BFApp.sApp.GetWorkspaceRectFrom((.)listView.mRequestPos.Value.x, (.)listView.mRequestPos.Value.y, 1, 1, out workspaceX, out workspaceY, out workspaceWidth, out workspaceHeight);
|
||||
|
||||
float popupX = listView.mRequestPos.Value.x;
|
||||
float popupY = listView.mRequestPos.Value.y;
|
||||
|
||||
int screenX = (int)popupX + (int)mOrigScreenX;
|
||||
int maxWidth = workspaceWidth - screenX - GS!(8);
|
||||
// GetWorkspaceRectFrom expects virtual screen coordinates
|
||||
int screenX = (.)(popupX + mOrigScreenX);
|
||||
int screenY = (.)(popupY + mOrigScreenY);
|
||||
|
||||
BFApp.sApp.GetWorkspaceRectFrom(screenX, screenY, 1, 1,
|
||||
out workspaceX, out workspaceY, out workspaceWidth, out workspaceHeight);
|
||||
|
||||
int maxWidth = workspaceWidth - screenX + workspaceX - GS!(8);
|
||||
|
||||
if (mTextPanel != null)
|
||||
{
|
||||
maxWidth = Math.Min(maxWidth, mTextPanel.mWidgetWindow.mWindowWidth);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue