From 83ff0ef42428e2e5d1b241c44729251cdbc5ac49 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 25 Sep 2014 12:33:56 +0800 Subject: [PATCH] Roo/bootstrap/Calendar.js --- Roo/bootstrap/Calendar.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Roo/bootstrap/Calendar.js b/Roo/bootstrap/Calendar.js index ac44a71fef..a60c6c999e 100644 --- a/Roo/bootstrap/Calendar.js +++ b/Roo/bootstrap/Calendar.js @@ -777,24 +777,15 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component, { var _this = this; this.cells.each(function(c) { - if(c.inhertance > 4){ - c.more = c.events; - c.events = []; - return; - } - var totalRow = c.inhertance + c.row; - - if(totalRow < 5){ + if(c.row < 5){ return; } - var moreRow = 4 - c.inhertance; - var ev = c.events; - c.events = ev.slice(0, moreRow); - c.more = ev.slice(moreRow); + c.events = ev.slice(0, 4); + c.more = ev.slice(4); c.row = c.events.length + 1; -- 2.39.2