This commit is contained in:
lincube
2026-03-04 12:36:45 +08:00
parent 5b93b320da
commit 2061d3f99f
2 changed files with 2 additions and 9 deletions

View File

@@ -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.