Form Designer Issue - Bouncing Size

Answered
0
0

Dear Team,

 

it seems that under certain conditions the form designer is experience a bouncing resize/redraw issue, causing the form to be constantly updated in the designer.

I am using VS2015 Update 3 (14.0.25431.01, Community Ed) and have installed some rather common extensions, but none should cause the issue.

WiseJ is version 1.4.91

 

I attached an isolated example project.

The height of the toolbar (24px) in the second row of the layout panel is equal to the height of that row (absolute 30px),  as the top/bottom margins are 3+3=6px.

In the VS form designer the toolbar keeps constantly refreshing, preventing the form to be saved and consuming CPU.

 

        private void InitializeComponent()
{
this.tableLayoutPanel1 = new Wisej.Web.TableLayoutPanel();
this.toolBar1 = new Wisej.Web.ToolBar();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new Wisej.Web.ColumnStyle(Wisej.Web.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.toolBar1, 0, 1);
this.tableLayoutPanel1.Location = new System.Drawing.Point(127, 97);
this.tableLayoutPanel1.Name = “tableLayoutPanel1”;
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new Wisej.Web.RowStyle(Wisej.Web.SizeType.Absolute, 65F));
this.tableLayoutPanel1.RowStyles.Add(new Wisej.Web.RowStyle(Wisej.Web.SizeType.Absolute, 30F));
this.tableLayoutPanel1.RowStyles.Add(new Wisej.Web.RowStyle(Wisej.Web.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(200, 278);
this.tableLayoutPanel1.TabIndex = 0;
//
// toolBar1
//
this.toolBar1.Location = new System.Drawing.Point(3, 68);
this.toolBar1.Name = “toolBar1”;
this.toolBar1.Size = new System.Drawing.Size(194, 24);
this.toolBar1.TabIndex = 0;
this.toolBar1.TabStop = false;
//
// Page1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
this.AutoScaleMode = Wisej.Web.AutoScaleMode.Font;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = “Page1”;
this.Size = new System.Drawing.Size(1396, 710);
this.Text = “Page1”;
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);

}

Attachment
  • You must to post comments
Best Answer
0
0

Set toolBar1.AutoSize = false or it will conflict with the TableLayoutPanel. Will log an issue to see if we can detect it and avoid the loop.

  • Kizaemon
    Thanks Luca, setting the AutoSize to false worked out.
  • You must to post comments
0
0

Hi Kizaemon,

this issue (WJ-8934) is fixed in the latest release (1.4.95).

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.