Avoid showing tooltips in inactive windows
This commit is contained in:
@@ -74,10 +74,15 @@ namespace FlaxEngine.GUI
|
|||||||
UnlockChildrenRecursive();
|
UnlockChildrenRecursive();
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
|
|
||||||
// Calculate popup direction and initial location
|
|
||||||
var parentWin = target.Root;
|
var parentWin = target.Root;
|
||||||
if (parentWin == null)
|
if (parentWin == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Showing a popup window might bring up the parent window on top
|
||||||
|
if (!parentWin.IsFocused)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Calculate popup direction and initial location
|
||||||
var dpiScale = target.RootWindow.DpiScale;
|
var dpiScale = target.RootWindow.DpiScale;
|
||||||
var dpiSize = Size * dpiScale;
|
var dpiSize = Size * dpiScale;
|
||||||
var locationWS = target.PointToWindow(location);
|
var locationWS = target.PointToWindow(location);
|
||||||
|
|||||||
Reference in New Issue
Block a user