From 0ca3aa21580e988e340b88360cda23b501fa65f2 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 11 十二月 2019 09:13:40 +0800
Subject: [PATCH] 2019.12.11

---
 ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs b/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
index f6b5651..233fc1a 100644
--- a/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
+++ b/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
@@ -426,9 +426,14 @@
                 Gravity = Gravity.CenterVertical,
                 UnSelectedImagePath = "Item/Floor.png"
             };
+            if (Config.Instance.Home.FloorDics.Count > 0)
+            {
+                topFrameLayout.AddChidren(floor);
+            }
 
             floorBtn = new Button
             {
+                X = floor.Right,
                 Width = Application.GetRealWidth(500),
                 Height = Application.GetRealHeight(100),
                 Gravity = Gravity.CenterVertical,
@@ -436,11 +441,8 @@
                 TextColor = ZigbeeColor.Current.GXCTextColor,
                 Text = Config.Instance.Home.GetCurrentFloorName
             };
-
-            if(Config.Instance.Home.FloorDics.Count>0)
+            if (Config.Instance.Home.FloorDics.Count > 0)
             {
-                topFrameLayout.AddChidren(floor);
-                floorBtn.X = floor.Right;
                 topFrameLayout.AddChidren(floorBtn);
             }
 

--
Gitblit v1.8.0