From 24068547ed1396034f56c7bd34ecbd2891f00653 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 10 五月 2021 17:39:28 +0800 Subject: [PATCH] 代码优化 --- HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs index f77216c..cefa915 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs @@ -26,7 +26,7 @@ VerticalScrolViewLayout contentView = new VerticalScrolViewLayout() { Y = Application.GetRealHeight(64), - Height = Application.GetRealHeight(603), + Height = Application.GetRealHeight(667 - 64), BackgroundColor = CSS_Color.MainBackgroundColor, ScrollEnabled = false, }; @@ -71,6 +71,7 @@ { X = Application.GetRealWidth(23), Height = Application.GetRealWidth(80), + ScrollEnabled = false, }; contentView.AddChidren(customDeploymentView); @@ -84,6 +85,11 @@ Language.StringByID(StringId.HouseDefense)); customDeploymentView.AddChidren(view); + if(FunctionList.List.securities.Count>3) + { + customDeploymentView.ScrollEnabled = true; + } + foreach (var mode in FunctionList.List.securities) { } @@ -96,7 +102,7 @@ var fixedDeploymentView = new FrameLayout() { - Height = Application.GetRealHeight(123), + Height = Application.GetRealHeight(133), }; contentView.AddChidren(fixedDeploymentView); @@ -129,6 +135,7 @@ { Y = btnFixedDeploymentTip.Bottom + Application.GetRealHeight(15), Height = Application.GetRealHeight(80), + ScrollEnabled = false, }; fixedDeploymentView.AddChidren(fixedDeploymentTypeView); -- Gitblit v1.8.0