Skip to content

Form Designer Issue - Bouncing Size #1545

Description

@itg-assistant

Kizaemon asked 2018-05-11 05:27:47 UTC

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);

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions