gantt: fix unit gantt helper test fails
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10356 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
66f881aad3
commit
3f7a7d9b14
|
@ -706,18 +706,18 @@ module Redmine
|
||||||
if coords[:bar_start] && coords[:bar_end]
|
if coords[:bar_start] && coords[:bar_end]
|
||||||
width = coords[:bar_end] - coords[:bar_start] - 2
|
width = coords[:bar_end] - coords[:bar_start] - 2
|
||||||
style = ""
|
style = ""
|
||||||
style << "top: #{params[:top]}px;"
|
style << "top:#{params[:top]}px;"
|
||||||
style << "left: #{coords[:bar_start]}px;"
|
style << "left:#{coords[:bar_start]}px;"
|
||||||
style << "width: #{width}px;"
|
style << "width:#{width}px;"
|
||||||
output << view.content_tag(:div, ' '.html_safe,
|
output << view.content_tag(:div, ' '.html_safe,
|
||||||
:style => style,
|
:style => style,
|
||||||
:class => "#{options[:css]} task_todo")
|
:class => "#{options[:css]} task_todo")
|
||||||
if coords[:bar_late_end]
|
if coords[:bar_late_end]
|
||||||
width = coords[:bar_late_end] - coords[:bar_start] - 2
|
width = coords[:bar_late_end] - coords[:bar_start] - 2
|
||||||
style = ""
|
style = ""
|
||||||
style << "top: #{params[:top]}px;"
|
style << "top:#{params[:top]}px;"
|
||||||
style << "left: #{coords[:bar_start]}px;"
|
style << "left:#{coords[:bar_start]}px;"
|
||||||
style << "width: #{width}px;"
|
style << "width:#{width}px;"
|
||||||
output << view.content_tag(:div, ' '.html_safe,
|
output << view.content_tag(:div, ' '.html_safe,
|
||||||
:style => style,
|
:style => style,
|
||||||
:class => "#{options[:css]} task_late")
|
:class => "#{options[:css]} task_late")
|
||||||
|
@ -725,9 +725,9 @@ module Redmine
|
||||||
if coords[:bar_progress_end]
|
if coords[:bar_progress_end]
|
||||||
width = coords[:bar_progress_end] - coords[:bar_start] - 2
|
width = coords[:bar_progress_end] - coords[:bar_start] - 2
|
||||||
style = ""
|
style = ""
|
||||||
style << "top: #{params[:top]}px;"
|
style << "top:#{params[:top]}px;"
|
||||||
style << "left: #{coords[:bar_start]}px;"
|
style << "left:#{coords[:bar_start]}px;"
|
||||||
style << "width: #{width}px;"
|
style << "width:#{width}px;"
|
||||||
output << view.content_tag(:div, ' '.html_safe,
|
output << view.content_tag(:div, ' '.html_safe,
|
||||||
:style => style,
|
:style => style,
|
||||||
:class => "#{options[:css]} task_done")
|
:class => "#{options[:css]} task_done")
|
||||||
|
|
Loading…
Reference in New Issue