From ef60074fc12dc2708eecbab8383e265714285884 Mon Sep 17 00:00:00 2001 From: "igor.vaynberg" Date: Tue, 27 Jul 2010 02:57:08 +0800 Subject: [PATCH] partial fix for Issue 235 - misaligned column widths --- src/agenda.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/agenda.js b/src/agenda.js index b91c07f..04962a9 100644 --- a/src/agenda.js +++ b/src/agenda.js @@ -329,8 +329,15 @@ function Agenda(element, options, methods, viewName) { colWidth = Math.floor((clientWidth - axisWidth) / colCnt); setOuterWidth(stripeTDs.slice(0, -1), colWidth); setOuterWidth(topTDs.slice(1, -2), colWidth); - setOuterWidth(topTDs.slice(-2, -1), clientWidth - axisWidth - colWidth*(colCnt-1)); + var scrollbar=body.get().scrollHeight!=body.get().clientHeight; + + if (scrollbar) { + setOuterWidth(topTDs.slice(-2, -1), clientWidth - axisWidth - colWidth*(colCnt-1)); + } else { + topTDs.slice(-1).hide(); + $('tr.fc-all-day th').slice(-1).hide(); + } bg.css({ left: axisWidth, width: clientWidth - axisWidth