mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
UI - Fix #640
This commit is contained in:
1 parent
5b6fc9eec7
commit
d10ffcf62a
1 file changed
+7
-1
@@ -261,8 +261,14 @@ namespace Artemis.UI.Screens.ProfileEditor.Visualization
|
|||||||
|
|
||||||
public void ResetZoomAndPan()
|
public void ResetZoomAndPan()
|
||||||
{
|
{
|
||||||
|
if (!Devices.Any())
|
||||||
|
{
|
||||||
|
PanZoomViewModel.Reset();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Create a rect surrounding all devices
|
// Create a rect surrounding all devices
|
||||||
SKRect rect = new SKRect(
|
SKRect rect = new(
|
||||||
Devices.Min(d => d.Rectangle.Left),
|
Devices.Min(d => d.Rectangle.Left),
|
||||||
Devices.Min(d => d.Rectangle.Top),
|
Devices.Min(d => d.Rectangle.Top),
|
||||||
Devices.Max(d => d.Rectangle.Right),
|
Devices.Max(d => d.Rectangle.Right),
|
||||||
|
|||||||
Reference in new issue
Block a user