mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-08-16 11:21:04 +08:00
partial fix for Issue 235 - misaligned column widths
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user