Gantt: Avoid unnecessary queries before rendering.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4476 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2010-12-07 19:29:47 +00:00
1 parent 318bd10c7f
commit 4715a37937
2 files changed
+12 -3

No files matched your search

+4 -2
View File
@@ -59,11 +59,13 @@ end
# Width of the entire chart
g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
# Collect the number of issues on Versions
@gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width)
g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
t_height = g_height + headers_height
@gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width)
%>
<table width="100%" style="border:0; border-collapse: collapse;">
<tr>