Fix editor main window resizing edges size to be 10px
This commit is contained in:
@@ -192,13 +192,12 @@ namespace FlaxEditor.GUI
|
|||||||
|
|
||||||
if (!_window.IsMaximized)
|
if (!_window.IsMaximized)
|
||||||
{
|
{
|
||||||
var winSize = RootWindow.Size * Platform.DpiScale;
|
var dpiScale = Platform.DpiScale;
|
||||||
/*
|
var winSize = RootWindow.Size * dpiScale;
|
||||||
* Distance from which the mouse is considered to be on the border/corner
|
|
||||||
* You can change the distance by modifying the x value in : (int)(x * Platform.DpiScale)
|
// Distance from which the mouse is considered to be on the border/corner
|
||||||
*/
|
float distance = 5.0f * dpiScale;
|
||||||
int distance = (int)(10 * Platform.DpiScale);
|
|
||||||
|
|
||||||
if (pos.Y > winSize.Y - distance && pos.X < distance)
|
if (pos.Y > winSize.Y - distance && pos.X < distance)
|
||||||
return WindowHitCodes.BottomLeft;
|
return WindowHitCodes.BottomLeft;
|
||||||
|
|
||||||
@@ -250,7 +249,7 @@ namespace FlaxEditor.GUI
|
|||||||
}
|
}
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the button.
|
/// Adds the button.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user