Index: data/stylesheets/html1_gantt.xsl
===================================================================
RCS file: /cvs/gnome/planner/data/stylesheets/html1_gantt.xsl,v
retrieving revision 1.9
diff -u -B -r1.9 html1_gantt.xsl
--- data/stylesheets/html1_gantt.xsl	27 Dec 2006 19:28:55 -0000	1.9
+++ data/stylesheets/html1_gantt.xsl	7 Jan 2007 13:59:56 -0000
@@ -18,7 +18,7 @@
   <xsl:param name="date"/>
   <xsl:choose>
     <xsl:when test="date:day-in-week($date) = 2 and $days >= 7">
-      <th align="center" colspan="7">
+      <th align="center" colspan="7" width="{7 * 19}px">
 	<xsl:value-of select="I18N:gettext('Week')"/>&nbsp;<xsl:value-of select="date:week-in-year($date) + 1"/>, <xsl:value-of select="date:year($date)"/>
       </th>
       <xsl:if test="not($days = 7)">
@@ -29,7 +29,8 @@
       </xsl:if>
     </xsl:when>
     <xsl:when test="not($days >= 7)">
-      <th colspan="{$days}"></th>
+      <th colspan="{$days}" width="{$days * 19}px"></th>
+      <th></th>
 	</xsl:when>
 	<xsl:otherwise> 
       <xsl:variable name="colspan">
@@ -40,7 +41,7 @@
 	  </xsl:otherwise>
 	</xsl:choose>
       </xsl:variable>
-      <th colspan="{$colspan}"></th>
+      <th colspan="{$colspan}" width="{$colspan * 19}px"></th>
       <xsl:if test="$days > 1">
         <xsl:call-template name="create-week-row">
           <xsl:with-param name="days" select="$days - $colspan"/>
@@ -57,12 +58,19 @@
   <th class="gantt-day-header" align="center" width="19px">
   <xsl:value-of select="date:day-in-month($date)"/>
   </th>
-  <xsl:if test="$days > 1">
+  <xsl:choose>
+    <xsl:when test="$days > 1">
     <xsl:call-template name="create-day-row">
       <xsl:with-param name="days" select="$days - 1"/>
 	<xsl:with-param name="date" select="date:add($date, date:duration(86400))"/>
       </xsl:call-template>
-  </xsl:if>
+    </xsl:when>
+    <xsl:otherwise>
+      <th class="gantt-day-header" align="center">
+      </th>
+    </xsl:otherwise>
+  </xsl:choose>
+
 </xsl:template>
 
 <xsl:template name="gantt">
@@ -180,7 +188,7 @@
   <td>
 
   <div class="scroll-div" style="border-color: #aaa #aaa #aaa #fff;">
-  <table cellspacing="0" cellpadding="0" border="1">
+  <table cellspacing="0" cellpadding="0" border="1" style="table-layout: fixed;">
     <tr class="header" align="left">
       <xsl:call-template name="create-week-row">
         <xsl:with-param name="days" select="$days"/>
@@ -221,7 +229,7 @@
       <xsl:variable name="task-complete" select="floor($task-end * (@percent-complete div 100))"/>
       
       <tr class="{$rowclass}">
-	<td colspan="{$days}">
+	<td colspan="{$days + 1}">
 	  <div style="width: {$days * 20 + 1}px; white-space: nowrap;">
 	    <xsl:if test="not (task)">
 	      <xsl:if test="$task-start > 0">
