新增活动 23730 23456 修复情趣类目无法上传问题
This commit is contained in:
1 parent
b958280afd
commit
1c7ccd3a03
12 files changed
+1485
-2854
No files matched your search
@@ -236,12 +236,12 @@ namespace TemuKJD.UserComponent
|
||||
|
||||
// 计算宽度
|
||||
int maxItemWidth = 0;
|
||||
//for (int index = 0; index < checkedListBox.Items.Count; index++)
|
||||
//{
|
||||
// var wth = TextRenderer.MeasureText(checkedListBox.Items[index].ToString(), checkedListBox.Font).Width + 20;
|
||||
// if (wth > maxItemWidth)
|
||||
// maxItemWidth = wth;
|
||||
//}
|
||||
for (int index = 0; index < checkedListBox.Items.Count; index++)
|
||||
{
|
||||
var wth = TextRenderer.MeasureText(checkedListBox.Items[index].ToString(), checkedListBox.Font).Width + 40;
|
||||
if (wth > maxItemWidth)
|
||||
maxItemWidth = wth;
|
||||
}
|
||||
|
||||
checkedListBox.SendToBack();
|
||||
checkedListBox.Visible = true;
|
||||
|
||||
Reference in new issue
Block a user