Fix initial position of Tooltips

This commit is contained in:
2024-07-18 22:58:42 +03:00
committed by Ari Vuollet
parent 0a3f07e6e7
commit 4308328b48

View File

@@ -77,8 +77,11 @@ namespace FlaxEngine.GUI
var dpiSize = Size * dpiScale; var dpiSize = Size * dpiScale;
var locationWS = target.PointToWindow(location); var locationWS = target.PointToWindow(location);
var locationSS = parentWin.PointToScreen(locationWS); var locationSS = parentWin.PointToScreen(locationWS);
var mousePos = Input.MouseScreenPosition;
_showTarget = target; _showTarget = target;
WrapPosition(ref locationSS); //WrapPosition(ref locationSS);
WrapPosition(ref mousePos, 10);
locationSS = mousePos + new Float2(15, 10);
// Create window // Create window
var desc = CreateWindowSettings.Default; var desc = CreateWindowSettings.Default;