1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Fix hoverwatch fleeting and comptime error messages.

This commit is contained in:
Fusion 2021-06-06 03:13:34 +02:00
parent 3d58885cef
commit 66e671f1ca

View file

@ -259,6 +259,8 @@ namespace IDE.ui
float mOrigY; float mOrigY;
float mOrigScreenX; float mOrigScreenX;
float mOrigScreenY; float mOrigScreenY;
float mTaskbarXOffset;
float mTaskbarYOffset;
bool mIsShown; bool mIsShown;
bool mCreatedWindow; bool mCreatedWindow;
bool mClosed; bool mClosed;
@ -1078,6 +1080,9 @@ namespace IDE.ui
WidgetWindow.sOnKeyDown.Add(new => HandleKeyDown); WidgetWindow.sOnKeyDown.Add(new => HandleKeyDown);
widgetWindow.mOnWindowClosed.Add(new (window) => Close()); widgetWindow.mOnWindowClosed.Add(new (window) => Close());
mTaskbarXOffset = mOrigScreenX - widgetWindow.mNormX;
mTaskbarYOffset = mOrigScreenY - widgetWindow.mNormY;
} }
else else
{ {
@ -1090,7 +1095,7 @@ namespace IDE.ui
if (autocomplete != null) if (autocomplete != null)
autocomplete.SetIgnoreMove(true); autocomplete.SetIgnoreMove(true);
mWidgetWindow.Resize((int32)(mWidgetWindow.mNormX + minX), (int32)(mWidgetWindow.mNormY + minY), (int32)(maxX - minX), (int32)(maxY - minY)); mWidgetWindow.Resize((int32)(mOrigScreenX - mTaskbarXOffset + minX), (int32)(mOrigScreenY - mTaskbarYOffset + minY), (int32)(maxX - minX), (int32)(maxY - minY));
if (autocomplete != null) if (autocomplete != null)
autocomplete.SetIgnoreMove(false); autocomplete.SetIgnoreMove(false);
} }
@ -1293,6 +1298,7 @@ namespace IDE.ui
actualMaxWidth = Math.Max(actualMaxWidth, fontMetrics.mMaxWidth); actualMaxWidth = Math.Max(actualMaxWidth, fontMetrics.mMaxWidth);
float addHeight = nameHeight - listViewItem.mSelfHeight; float addHeight = nameHeight - listViewItem.mSelfHeight;
listViewItem.mSelfHeight = nameHeight;
height += addHeight; height += addHeight;
} }