From b7591dba0127890e24eb1ae41e150a0ad8ee1a51 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 17 七月 2020 11:49:21 +0800 Subject: [PATCH] 2020-07-17 1.修复在大屏幕手机,部分界面图标会变形问题. --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs index 76a63f9..c1f0f72 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs @@ -139,10 +139,11 @@ void EmailForgot (FrameLayout FrameLayoutView) { FrameLayoutView.RemoveAll (); + var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2; EditText Register_Email_Address = new EditText () { - Width = Application.GetRealWidth (500), - Height = Application.GetRealHeight (85), - X = Application.GetRealWidth (70), + Width = Application.GetMinRealAverage (500), + Height = Application.GetMinRealAverage (85), + X = viewX, Y = Application.GetRealHeight (100), UnSelectedImagePath = "Register/Register_Email_Address.png", PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor, -- Gitblit v1.8.0