修复toolStrip按钮换行显示问题:添加AutoSize=true并增加TopToolStripPanel最小高度
This commit is contained in:
@@ -123,6 +123,7 @@ namespace JoyD.Windows.CS
|
||||
// toolStripContainer.TopToolStripPanel
|
||||
//
|
||||
this.toolStripContainer.TopToolStripPanel.Controls.Add(this.toolStrip);
|
||||
this.toolStripContainer.TopToolStripPanel.MinimumSize = new System.Drawing.Size(0, 150); // 增加最小高度以允许按钮换行显示
|
||||
//
|
||||
// dataGridViewTempDiff
|
||||
//
|
||||
@@ -153,6 +154,7 @@ namespace JoyD.Windows.CS
|
||||
this.btnBrushSize10,
|
||||
this.btnBrushSize15,
|
||||
this.btnBrushSize25});
|
||||
this.toolStrip.AutoSize = true;
|
||||
this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
|
||||
this.toolStrip.Location = new System.Drawing.Point(3, 0);
|
||||
this.toolStrip.MaximumSize = new System.Drawing.Size(0, 300); // 宽度设为0表示无限制
|
||||
|
||||
Reference in New Issue
Block a user