Cal day view : introduce a gap for event which begin at same hour, display events...
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 15 Oct 2007 12:01:26 +0000 (12:01 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 15 Oct 2007 12:01:26 +0000 (12:01 +0000)
webcit/calendar_view.c
webcit/static/webcit.css

index 5b401d1d3ec881f804c3bc0a47bcc2da74ea389b..17a0cbf9c95e228912aa6f5c972fe1aec73be6a4 100644 (file)
@@ -774,6 +774,7 @@ void calendar_day_view_display_events(time_t thetime, int year, int month,
        struct tm ending_tm;
        int top = 0;
        int height = 0;
+       int gap = 0;
 
        if (WCC->num_cal == 0) {
                // \todo FIXME wprintf("<br /><br /><br />\n");
@@ -901,14 +902,15 @@ void calendar_day_view_display_events(time_t thetime, int year, int month,
                                        }
                                wprintf("<dd  class=\"event\" "
                                        "style=\"position: absolute; "
-                                       "top:%dpx; left:100px; "
+                                       "top:%dpx; left:%dpx; "
                                        "height:%dpx; \" >",
-                                       top, height
+                                       top, (50 + (gap * 50)), height
                                        );
                                wprintf("<a href=\"display_edit_event?msgnum=%ld&calview=day&year=%d&month=%d&day=%d&hour=%d&case=%d\">",
                                        Cal->cal_msgnum, year, month, day, t.hour, hour);
                                escputs((char *) icalproperty_get_comment(p));
                                wprintf("</a></dd>\n");
+                               gap++;
                                }
                                
                        }
index b363d4c670d4fc5eb87c8db76c6b589d3870922a..c1e079b0b6d52fcbf4fd11b317ef5308086810a2 100644 (file)
@@ -1178,9 +1178,11 @@ td.events_of_the_day {
        filter:alpha(opacity=50);   /* Internet Explorer 6     */
        -moz-opacity:0.5;           /* Mozilla 1.6 and prec.   */
        opacity: 0.5;               /* CSS3 and Mozilla  */
+       -moz-border-radius: 8px;    /* CSS3 and Mozilla  */
        border: solid 1px red;
        background-color: yellow;
        z-index: 10;
+       padding: 0 4px 0 4px; 
 }
 
 .event a {