]> source.dussan.org Git - redmine.git/commitdiff
gantt: fix unit gantt helper test fails
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 11 Sep 2012 01:53:34 +0000 (01:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 11 Sep 2012 01:53:34 +0000 (01:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10356 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index 59b40fc1630bf58b8c54cb2dd78a1f649b8c701e..5550970cd2f4f19e39bf69ab894361399043a337 100644 (file)
@@ -706,18 +706,18 @@ module Redmine
         if coords[:bar_start] && coords[:bar_end]
           width = coords[:bar_end] - coords[:bar_start] - 2
           style = ""
-          style << "top: #{params[:top]}px;"
-          style << "left: #{coords[:bar_start]}px;"
-          style << "width: #{width}px;"
+          style << "top:#{params[:top]}px;"
+          style << "left:#{coords[:bar_start]}px;"
+          style << "width:#{width}px;"
           output << view.content_tag(:div, '&nbsp;'.html_safe,
                                      :style => style,
                                      :class => "#{options[:css]} task_todo")
           if coords[:bar_late_end]
             width = coords[:bar_late_end] - coords[:bar_start] - 2
             style = ""
-            style << "top: #{params[:top]}px;"
-            style << "left: #{coords[:bar_start]}px;"
-            style << "width: #{width}px;"
+            style << "top:#{params[:top]}px;"
+            style << "left:#{coords[:bar_start]}px;"
+            style << "width:#{width}px;"
             output << view.content_tag(:div, '&nbsp;'.html_safe,
                                        :style => style,
                                        :class => "#{options[:css]} task_late")
@@ -725,9 +725,9 @@ module Redmine
           if coords[:bar_progress_end]
             width = coords[:bar_progress_end] - coords[:bar_start] - 2
             style = ""
-            style << "top: #{params[:top]}px;"
-            style << "left: #{coords[:bar_start]}px;"
-            style << "width: #{width}px;"
+            style << "top:#{params[:top]}px;"
+            style << "left:#{coords[:bar_start]}px;"
+            style << "width:#{width}px;"
             output << view.content_tag(:div, '&nbsp;'.html_safe,
                                        :style => style,
                                        :class => "#{options[:css]} task_done")