2012-03-13 33 views
0

(一部のテキストがそれ以外の場合は見ることができないので)私はFullCalendarライブラリを使用して、私はイベントを重畳しないようにFullCalendarを強制する方法を見つけることができませんFullcalendarはここでイベント

を重畳私のカレンダーです:

Events

+0

fullcalendarはイベントの絶対位置指定を使用するため、CSSでこれを行うことはできません。また、[イベントレンダリング](http://arshaw.com/fullcalendar/docs/event_rendering/)のドキュメントを見て、色を変えることができます。 – augustknight

+0

だから私は思っていたライブラリ自体を修正する必要があります。完了したら、ここにパッチを投稿します。 – Dorian

答えて

1

パッチは非常に簡単です:

diff --git a/src/agenda/AgendaEventRenderer.js b/src/agenda/AgendaEventRenderer.js 
index 9e7243b..8b0ec63 100644 
--- a/src/agenda/AgendaEventRenderer.js 
+++ b/src/agenda/AgendaEventRenderer.js 
@@ -182,7 +182,7 @@ function AgendaEventRenderer() { 
      leftmost = colContentLeft(colI*dis + dit); 
      availWidth = colContentRight(colI*dis + dit) - leftmost; 
      availWidth = Math.min(availWidth-6, availWidth*.95); // TODO: move this to CSS 
-   if (levelI) { 
+   if (true) { // PATCH : Always render indented events 
       // indented and thin 
       outerWidth = availWidth/(levelI + forward + 1); 
      }else{ 

それは今のようになります。

Agenda

関連する問題