Fixed incorrect width settings

This commit is contained in:
gamosoft_cp 2014-10-24 15:09:13 +00:00
parent 8a5363e568
commit 7638aa0849

View File

@ -324,14 +324,14 @@ namespace Outlook2013TodoAddIn
if (this.ShowWeekNumbers)
{
this.tableLayoutPanel1.Left = 31;
this.tableLayoutPanel1.Width = 212;
this.tableLayoutPanel1.Left = this.tableLayoutPanel2.Left + this.tableLayoutPanel2.Width;
this.tableLayoutPanel1.Width = this.btnNext.Left - this.btnPrevious.Left - this.tableLayoutPanel2.Width + this.btnNext.Width;
this.tableLayoutPanel2.Visible = true;
}
else
{
this.tableLayoutPanel1.Left = 9;
this.tableLayoutPanel1.Width = 234;
this.tableLayoutPanel1.Left = this.btnPrevious.Left;
this.tableLayoutPanel1.Width = this.btnNext.Left - this.btnPrevious.Left + this.btnNext.Width;
this.tableLayoutPanel2.Visible = false;
}