fix typo "header_heigth" in gantt view

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11262 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-01-24 12:17:47 +00:00
parent 63cc617bc5
commit 0e180c861f
1 changed files with 7 additions and 7 deletions

View File

@ -72,18 +72,18 @@
@gantt.zoom.times { zoom = zoom * 2 } @gantt.zoom.times { zoom = zoom * 2 }
subject_width = 330 subject_width = 330
header_heigth = 18 header_height = 18
headers_height = header_heigth headers_height = header_height
show_weeks = false show_weeks = false
show_days = false show_days = false
if @gantt.zoom > 1 if @gantt.zoom > 1
show_weeks = true show_weeks = true
headers_height = 2 * header_heigth headers_height = 2 * header_height
if @gantt.zoom > 2 if @gantt.zoom > 2
show_days = true show_days = true
headers_height = 3 * header_heigth headers_height = 3 * header_height
end end
end end
@ -148,7 +148,7 @@
<% <%
month_f = @gantt.date_from month_f = @gantt.date_from
left = 0 left = 0
height = (show_weeks ? header_heigth : header_heigth + g_height) height = (show_weeks ? header_height : header_height + g_height)
%> %>
<% @gantt.months.times do %> <% @gantt.months.times do %>
<% <%
@ -173,7 +173,7 @@
<% if show_weeks %> <% if show_weeks %>
<% <%
left = 0 left = 0
height = (show_days ? header_heigth - 1 : header_heigth - 1 + g_height) height = (show_days ? header_height - 1 : header_height - 1 + g_height)
%> %>
<% if @gantt.date_from.cwday == 1 %> <% if @gantt.date_from.cwday == 1 %>
<% <%
@ -222,7 +222,7 @@
<% if show_days %> <% if show_days %>
<% <%
left = 0 left = 0
height = g_height + header_heigth - 1 height = g_height + header_height - 1
wday = @gantt.date_from.cwday wday = @gantt.date_from.cwday
%> %>
<% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %> <% (@gantt.date_to - @gantt.date_from + 1).to_i.times do %>