From 561052e04a4bde86e963c89e10f7614df38fd002 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期三, 04 九月 2024 10:58:21 +0800
Subject: [PATCH] 地暖面板,新增SPK

---
 HDL_ON/UI/UI2/FuntionControlView/Acst/InverterJinmaoPage.cs |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Acst/InverterJinmaoPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Acst/InverterJinmaoPage.cs
index b746317..382e769 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Acst/InverterJinmaoPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Acst/InverterJinmaoPage.cs
@@ -145,10 +145,11 @@
 
 #if __IOS__
             pvGenerate_TodayValuesButton.TextAlignment = TextAlignment.TopLeft;
-            pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(8);
+            pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(4);
 #else
             pvGenerate_TodayValuesButton.TextAlignment = TextAlignment.BottomLeft;
-            pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth();
+            pvGenerate_TodayValuesButton.Y = Application.GetRealWidth(37);
+            pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(4);
 #endif
             pvGenerate_todayUintButton = new Button()
             {
@@ -242,6 +243,11 @@
                 TextAlignment = TextAlignment.TopRight,
                 IsBold = true,
             };
+#if __IOS__
+#else
+            pvLoad_TodayValuesButton.Y = Application.GetRealWidth(37);
+            pvLoad_TodayValuesButton.X = Application.GetRealWidth(81 - 16) - loadEle_TodayUintButton.Width;
+#endif
             loadEleView.AddChidren(pvLoad_TodayValuesButton);
 
             pvLoad_TotalValuesButton = new Button()
@@ -838,11 +844,7 @@
                 TextAlignment = TextAlignment.BottomLeft,
                 IsBold = true,
             };
-#if __IOS__
             socialContribution_Info1_ValuesButton.Width = socialContribution_Info1_ValuesButton.GetTextWidth() + Application.GetRealWidth(8);
-#else
-            socialContribution_Info1_ValuesButton.Width = socialContribution_Info1_ValuesButton.GetTextWidth();
-#endif
             socialContribution_InfoView_1.AddChidren(socialContribution_Info1_ValuesButton);
 
             var socialContribution_Info1_UintButton = new Button()
@@ -908,11 +910,7 @@
                 TextAlignment = TextAlignment.BottomLeft,
                 IsBold = true,
             };
-#if __IOS__
             socialContribution_Info2_ValuesButton.Width = socialContribution_Info2_ValuesButton.GetTextWidth() + Application.GetRealWidth(8);
-#else
-            socialContribution_Info2_ValuesButton.Width = socialContribution_Info2_ValuesButton.GetTextWidth();
-#endif
             socialContribution_InfoView_2.AddChidren(socialContribution_Info2_ValuesButton);
 
             var socialContribution_Info2_UintButton = new Button()
@@ -978,11 +976,7 @@
                 TextAlignment = TextAlignment.BottomLeft,
                 IsBold = true,
             };
-#if __IOS__
             socialContribution_Info3_ValuesButton.Width = socialContribution_Info3_ValuesButton.GetTextWidth() + Application.GetRealWidth(8);
-#else
-            socialContribution_Info3_ValuesButton.Width = socialContribution_Info3_ValuesButton.GetTextWidth();
-#endif
             socialContribution_InfoView_3.AddChidren(socialContribution_Info3_ValuesButton);
 
             var socialContribution_Info3_UintButton = new Button()

--
Gitblit v1.8.0