From 07c91e3b27d10bad17ad2f805aab7b74e24fad2b Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 06 十一月 2023 14:58:48 +0800
Subject: [PATCH] 场景增加配置自动化使能;安防增加干接点触发条件

---
 HDL_ON/UI/UI0-Public/TopViewDiv.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
index 572cffe..31658f6 100644
--- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs
+++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -42,6 +42,8 @@
         /// </summary>
         Action backAction;
 
+        public int maginY = 0;
+
         public TopViewDiv(FrameLayout frame, string str)
         {
             baseView = frame;
@@ -84,7 +86,7 @@
         {
             contentView = new FrameLayout()
             {
-                Height = Application.GetRealHeight(64),
+                Height = Application.GetRealHeight(64+ maginY),
                 BackgroundColor = color,
             };
             baseView.AddChidren(contentView);
@@ -92,7 +94,7 @@
             Button btnBackIcon = new Button()
             {
                 X = Application.GetRealWidth(10),
-                Y = Application.GetRealHeight(29),
+                Y = Application.GetRealHeight(29 + maginY),
                 Width = Application.GetRealWidth(40),
                 Height = Application.GetRealWidth(28),
                 UnSelectedImagePath = "Public/BackIcon.png",
@@ -102,7 +104,7 @@
             btnTilte = new Button()
             {
                 Gravity = Gravity.CenterHorizontal,
-                Y = Application.GetRealHeight(30),
+                Y = Application.GetRealHeight(30 + maginY),
                 Width = Application.GetRealWidth(270),
                 Height = Application.GetRealHeight(25),
                 TextAlignment = TextAlignment.Center,

--
Gitblit v1.8.0