增加toolStripContainer.TopToolStripPanel高度,确保按钮换行后能完全显示

This commit is contained in:
zqm
2025-11-10 14:10:02 +08:00
parent 7aa4d3b4b0
commit 92a1dec3ed

View File

@@ -114,10 +114,12 @@ namespace JoyD.Windows.CS
this.toolStripContainer.Size = new System.Drawing.Size(309, 450);
this.toolStripContainer.TabIndex = 0;
this.toolStripContainer.Text = "toolStripContainer";
this.toolStripContainer.TopToolStripPanel.AutoScroll = false;
//
// toolStripContainer.TopToolStripPanel
//
this.toolStripContainer.TopToolStripPanel.Controls.Add(this.toolStrip);
this.toolStripContainer.TopToolStripPanel.Size = new System.Drawing.Size(309, 100); // 增加TopToolStripPanel的高度确保能显示多行按钮
//
// dataGridViewTempDiff
//
@@ -202,6 +204,7 @@ namespace JoyD.Windows.CS
// toolStrip
//
this.toolStrip.AllowDrop = true;
this.toolStrip.AutoSize = true;
this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.toolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);