* Worked around a rendering bug in Satan's Browser that was causing it
authorArt Cancro <ajc@citadel.org>
Sun, 29 Jun 2003 20:51:22 +0000 (20:51 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 29 Jun 2003 20:51:22 +0000 (20:51 +0000)
  to draw the calendar month view much wider than the actual screen wdith

webcit/ChangeLog
webcit/calendar_view.c

index 061ace76023fbe1b64214224d15c9e90eab1b228..fee11c4de84e58305e2dae1eb0f14c7c650ed561 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 500.8  2003/06/29 20:51:21  ajc
+* Worked around a rendering bug in Satan's Browser that was causing it
+  to draw the calendar month view much wider than the actual screen wdith
+
 Revision 500.7  2003/06/28 04:09:37  error
 * roomops.c: Backout change to display one less box in the first column in
   roomlist view, it doesn't seem to work for everyone
@@ -1514,4 +1518,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 30f705a7f68a215d82a798cd7817500b51aab3b4..9124a7c9cb7c6cf33d6419bac052e46b94bf8867 100644 (file)
@@ -156,7 +156,7 @@ void calendar_month_view(int year, int month, int day) {
                year, month, day
        );
 
-       wprintf("<TD><CENTER><H3>");
+       wprintf("<TD ALIGN=CENTER><FONT SIZE=+1>");
 
        memcpy(&tm, localtime(&previous_month), sizeof(struct tm));
        wprintf("<A HREF=\"readfwd?calview=month&year=%d&month=%d&day=1\">",
@@ -174,16 +174,18 @@ void calendar_month_view(int year, int month, int day) {
                (int)(tm.tm_year)+1900, tm.tm_mon + 1);
        wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/forward.gif\" BORDER=0></A>\n");
 
-       wprintf("</H3></TD><TD align=right><font color=#FFFFFF size=-2>"
+       wprintf("</FONT></TD><TD align=right><font color=#FFFFFF size=-2>"
                "Click on any date for day view&nbsp;"
                "</FONT></TD></TR></TABLE>\n");
 
        /* Inner table (the real one) */
        wprintf("<TABLE width=100%% border=0 cellpadding=1 cellspacing=1 "
-               "bgcolor=#204B78>");
+               "bgcolor=#204B78><TR>");
        for (i=0; i<7; ++i) {
-               wprintf("<TH><FONT COLOR=\"#FFFFFF\">%s</FONT></TH>", days[i]);
+               wprintf("<TD ALIGN=CENTER WIDTH=14%%>"
+                       "<FONT COLOR=\"#FFFFFF\">%s</FONT></TH>", days[i]);
        }
+       wprintf("</TR>\n");
 
        /* Now do 35 days */
        for (i = 0; i < 35; ++i) {