From 7638aa0849771fe14281cb501f049e64a03be9d4 Mon Sep 17 00:00:00 2001 From: gamosoft_cp Date: Fri, 24 Oct 2014 15:09:13 +0000 Subject: [PATCH] Fixed incorrect width settings --- Outlook2013TodoAddIn/CustomCalendar.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Outlook2013TodoAddIn/CustomCalendar.cs b/Outlook2013TodoAddIn/CustomCalendar.cs index a1efbe3..6dd8e16 100644 --- a/Outlook2013TodoAddIn/CustomCalendar.cs +++ b/Outlook2013TodoAddIn/CustomCalendar.cs @@ -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; }