* UINavBar: 去除下拉菜单宽度调整

This commit is contained in:
Sunny 2023-02-22 17:51:40 +08:00
parent 1dc2ec9b53
commit 1d633229e1

View File

@ -24,6 +24,7 @@
* 2022-03-19: V3.1.1
* 2022-04-14: V3.1.3
* 2022-07-28: V3.2.2
* 2023-02-22: V3.3.2
******************************************************************************/
using System;
@ -659,12 +660,12 @@ namespace Sunny.UI
}
}
NavBarMenu.AutoSize = true;
if (NavBarMenu.Width < NodeSize.Width)
{
NavBarMenu.AutoSize = false;
NavBarMenu.Width = NodeSize.Width;
}
//NavBarMenu.AutoSize = true;
//if (NavBarMenu.Width < NodeSize.Width)
//{
// NavBarMenu.AutoSize = false;
// NavBarMenu.Width = NodeSize.Width;
//}
foreach (ToolStripItem item in NavBarMenu.Items)
{