Fixed wrong layout caused by listbox's integral height setting

This commit is contained in:
Thorsten Sommer 2022-07-12 20:02:47 +02:00
parent 3bbff31fe0
commit 538dbe1707
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -48,9 +48,6 @@
this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 66F)); this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 66F));
this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F)); this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayout.RowCount = 2;
this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
this.tableLayout.Controls.Add(this.flowLayoutToolbar, 0, 0); this.tableLayout.Controls.Add(this.flowLayoutToolbar, 0, 0);
this.tableLayout.Controls.Add(this.listTextElements, 1, 0); this.tableLayout.Controls.Add(this.listTextElements, 1, 0);
this.tableLayout.Controls.Add(this.textBoxFilter, 2, 1); this.tableLayout.Controls.Add(this.textBoxFilter, 2, 1);
@ -58,6 +55,9 @@
this.tableLayout.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayout.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayout.Location = new System.Drawing.Point(0, 0); this.tableLayout.Location = new System.Drawing.Point(0, 0);
this.tableLayout.Name = "tableLayout"; this.tableLayout.Name = "tableLayout";
this.tableLayout.RowCount = 2;
this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
this.tableLayout.Size = new System.Drawing.Size(706, 201); this.tableLayout.Size = new System.Drawing.Size(706, 201);
this.tableLayout.TabIndex = 0; this.tableLayout.TabIndex = 0;
// //
@ -116,11 +116,12 @@
this.tableLayout.SetColumnSpan(this.listTextElements, 2); this.tableLayout.SetColumnSpan(this.listTextElements, 2);
this.listTextElements.Dock = System.Windows.Forms.DockStyle.Fill; this.listTextElements.Dock = System.Windows.Forms.DockStyle.Fill;
this.listTextElements.FormattingEnabled = true; this.listTextElements.FormattingEnabled = true;
this.listTextElements.IntegralHeight = false;
this.listTextElements.ItemHeight = 28; this.listTextElements.ItemHeight = 28;
this.listTextElements.Location = new System.Drawing.Point(69, 3); this.listTextElements.Location = new System.Drawing.Point(69, 3);
this.listTextElements.Name = "listTextElements"; this.listTextElements.Name = "listTextElements";
this.listTextElements.ScrollAlwaysVisible = true; this.listTextElements.ScrollAlwaysVisible = true;
this.listTextElements.Size = new System.Drawing.Size(634, 200); this.listTextElements.Size = new System.Drawing.Size(634, 155);
this.listTextElements.TabIndex = 1; this.listTextElements.TabIndex = 1;
// //
// textBoxFilter // textBoxFilter