[BUG] "Pixel maximum menu width" not working as expected (#319), version 1.2.6.5

This commit is contained in:
Markus Hofknecht 2022-02-11 20:48:11 +01:00
parent 3ba03b8f9e
commit 36ceb2b9af
3 changed files with 6 additions and 4 deletions

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.6.4")]
[assembly: AssemblyFileVersion("1.2.6.4")]
[assembly: AssemblyVersion("1.2.6.5")]
[assembly: AssemblyFileVersion("1.2.6.5")]

View file

@ -113,7 +113,7 @@
//
// tableLayoutPanelSearch
//
this.tableLayoutPanelSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanelSearch.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.tableLayoutPanelSearch.AutoSize = true;
this.tableLayoutPanelSearch.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tableLayoutPanelSearch.BackColor = System.Drawing.Color.White;
@ -127,7 +127,7 @@
this.tableLayoutPanelSearch.Name = "tableLayoutPanelSearch";
this.tableLayoutPanelSearch.RowCount = 1;
this.tableLayoutPanelSearch.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanelSearch.Size = new System.Drawing.Size(153, 22);
this.tableLayoutPanelSearch.Size = new System.Drawing.Size(128, 22);
this.tableLayoutPanelSearch.TabIndex = 5;
this.tableLayoutPanelSearch.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.DgvMouseWheel);
//

View file

@ -717,6 +717,8 @@ namespace SystemTrayMenu.UserInterface
dgv.Width = widthIcon + widthText;
}
tableLayoutPanelSearch.MinimumSize = new Size(dgv.Width + widthScrollbar, 0);
// Only scaling correct with Sans Serif for textBoxSearch. Workaround:
textBoxSearch.Font = new Font(
"Segoe UI",