From 2061d3f99ffc49abd6b578959dd05f4260c3f244 Mon Sep 17 00:00:00 2001 From: lincube Date: Wed, 4 Mar 2026 12:36:45 +0800 Subject: [PATCH] 0.3.2 --- LanMontainDesktop/ComponentSystem/ComponentRegistry.cs | 3 ++- LanMontainDesktop/Views/MainWindow.ComponentSystem.cs | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/LanMontainDesktop/ComponentSystem/ComponentRegistry.cs b/LanMontainDesktop/ComponentSystem/ComponentRegistry.cs index 88c3b37..4c219dc 100644 --- a/LanMontainDesktop/ComponentSystem/ComponentRegistry.cs +++ b/LanMontainDesktop/ComponentSystem/ComponentRegistry.cs @@ -129,7 +129,8 @@ public sealed class ComponentRegistry MinWidthCells: 2, MinHeightCells: 1, AllowStatusBarPlacement: false, - AllowDesktopPlacement: true), + AllowDesktopPlacement: true, + ResizeMode: DesktopComponentResizeMode.Free), new DesktopComponentDefinition( BuiltInComponentIds.DesktopStudyNoiseCurve, "Noise Curve", diff --git a/LanMontainDesktop/Views/MainWindow.ComponentSystem.cs b/LanMontainDesktop/Views/MainWindow.ComponentSystem.cs index d013f6b..40a7027 100644 --- a/LanMontainDesktop/Views/MainWindow.ComponentSystem.cs +++ b/LanMontainDesktop/Views/MainWindow.ComponentSystem.cs @@ -1208,14 +1208,6 @@ public partial class MainWindow new ComponentScaleRule(WidthUnit: 2, HeightUnit: 1, MinScale: 2)); } - if (string.Equals(componentId, BuiltInComponentIds.DesktopStudyEnvironment, StringComparison.OrdinalIgnoreCase)) - { - // Keep study environment widget in a 2:1 ratio: 2x1, 4x2, 6x3... - return SnapSpanToScaleRules( - span, - new ComponentScaleRule(WidthUnit: 2, HeightUnit: 1, MinScale: 1)); - } - if (string.Equals(componentId, BuiltInComponentIds.DesktopStudyNoiseCurve, StringComparison.OrdinalIgnoreCase)) { // Keep noise curve widget in a 2:1 ratio with minimum 4x2.