From 849d8656a8ec66bf3472ddabdc541f98cd0f3e09 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 17 十二月 2020 19:47:42 +0800 Subject: [PATCH] 2020-12-17 1.信息中心增加换行显示。2.收到报警推送类型的通知才弹窗。 --- HDL_ON/UI/UI0-Public/Widget/UpdateTipDialog.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI0-Public/Widget/UpdateTipDialog.cs b/HDL_ON/UI/UI0-Public/Widget/UpdateTipDialog.cs index fb23965..21d8ff3 100644 --- a/HDL_ON/UI/UI0-Public/Widget/UpdateTipDialog.cs +++ b/HDL_ON/UI/UI0-Public/Widget/UpdateTipDialog.cs @@ -77,20 +77,24 @@ }; contentView.AddChidren(mesView); - Button btnMes = new Button() + TextButton btnMes = new TextButton() { Gravity = Gravity.CenterHorizontal, Width = mesView.Width, - Height = mesView.Height, + //Height = mesView.Height, + Height = Application.GetRealWidth(20), TextAlignment = TextAlignment.TopLeft, TextColor = CSS_Color.TextualColor, TextSize = CSS_FontSize.TextFontSize, - IsMoreLines = true, Text = msgStr, //BackgroundColor = CSS_Color.AuxiliaryColor2 }; mesView.AddChidren(btnMes); + //鍔ㄦ�佽绠楅珮搴� + var needHeight = btnMes.GetMoreLineNeedHeight(); + btnMes.IsMoreLines = true; + btnMes.Height = needHeight; Button btnLine = new Button() { -- Gitblit v1.8.0