JLChen
2021-07-06 d72ca686a3e262693f8a6e45e747e8e8da43335b
HDL_ON/UI/UI0-Stan/Controls/MessageControls/ShowMsgControl.cs
old mode 100755 new mode 100644
@@ -120,6 +120,13 @@
            btnTemp.Text = msgText.Replace("\r\n", string.Empty);
            //获取这个显示的内容的高度
            int rowCount = btnTemp.GetRealRowCountByText();
            //再看看它原来按换行符分割为几行
            var myArry = msgText.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
            //看看谁的行数多,就用谁的
            if (myArry.Length > rowCount)
            {
                rowCount = myArry.Length;
            }
            int contentHeight = rowCount * Application.GetRealHeight(18);
            if (rowCount <= 2)
            {