]> source.dussan.org Git - redmine.git/commitdiff
Gantt: view cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Dec 2010 18:41:50 +0000 (18:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Dec 2010 18:41:50 +0000 (18:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4473 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/gantts/show.html.erb

index e0d7479f2f0752839b0f8dfb9725c4b68a69da8e..05d5c0171f088ddf6bd70eb44d76eb1fa9d7d029 100644 (file)
@@ -63,7 +63,7 @@ g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
 g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
 t_height = g_height + headers_height
 
-@gantt.render(:headers_height => headers_height, :top => headers_height + 8, :zoom => zoom, :g_width => g_width)
+@gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width)
 %>
 <table width="100%" style="border:0; border-collapse: collapse;">
 <tr>
@@ -72,7 +72,6 @@ t_height = g_height + headers_height
 <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;">
 <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div>
 <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div>
-<% top = headers_height + 8 %>
 
 <%= @gantt.subjects %>
 
@@ -153,8 +152,6 @@ if show_days
        end
 end %>
 
-<% top = headers_height + 10 %>
-
 <%= @gantt.lines %>
 
 <%