From f3c8cf07fad2e39a32af549b305da6723159f755 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 31 七月 2020 12:07:19 +0800
Subject: [PATCH] 2020-07-31-1

---
 HDL_ON/UI/UI2/FuntionControlView/Music/View/DialogView.cs |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/View/DialogView.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/View/DialogView.cs
index 253b383..9f8854c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/View/DialogView.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/View/DialogView.cs
@@ -575,20 +575,20 @@
                     addFlieRow.AddChidren(songNameBtn);
 
                     var wText = songNameBtn.GetTextWidth();//鑾峰彇鏂囨湰瀹藉害
-                    if (wText > 280)
+                    if (wText >Application.GetRealWidth(220))
                     {
-                        songNameBtn.Width = Application.GetRealWidth(280);
+                        songNameBtn.Width = Application.GetRealWidth(220);
                     }
                     else
                     {
-                        songNameBtn.Width = wText + 5;
+                        songNameBtn.Width = wText + Application.GetRealWidth(15);
                     }
                     //姝屾墜鎺т欢
                     Button singerBtn = new Button
                     {
                         X = songNameBtn.Right,
                         Y = Application.GetRealHeight(15),
-                        Width = Application.GetRealWidth(280 - songNameBtn.Width),
+                        Width = Application.GetRealWidth(220)- wText,
                         Height = Application.GetRealHeight(20),
                         TextColor = Color.MusicNoTxetColor,
                         TextSize = TextSize.Text12,
@@ -596,11 +596,6 @@
                         Text = "-" + player.A31PlayStatus.Artist.Trim(),
                     };
                     addFlieRow.AddChidren(singerBtn);
-                    if (wText > 280)
-                    {
-                        ///姝屽悕闀垮害灏忎簬250鎵嶅彲浠ユ樉绀烘瓕鎵嬪嚭鏉�
-                        singerBtn.Width = Application.GetRealWidth(0);
-                    }
                 }
                 else
                 {

--
Gitblit v1.8.0