From 5851291c78b2cb5532e6938c77b5f51eb06a6ad2 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 21 十二月 2020 19:41:07 +0800 Subject: [PATCH] Merge branch 'NewFilePath' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into NewFilePath --- 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 old mode 100644 new mode 100755 index fb23965..21d8ff3 --- 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