]> source.dussan.org Git - redmine.git/commitdiff
Extracts gantt subjects styles to css (#7280).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 Feb 2011 17:10:15 +0000 (17:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 Feb 2011 17:10:15 +0000 (17:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4916 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb
public/stylesheets/application.css

index bb99b9fc86cc5bc4867577994549595f9a791d3e..fa3c46f46249c0845919f11df738e474d45fbb1f 100644 (file)
@@ -709,7 +709,7 @@ module Redmine
       end
       
       def html_subject(params, subject, options={})
-        style = "position: absolute;line-height:1.2em;height:16px;top:#{params[:top]}px;left:#{params[:indent]}px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis;"
+        style = "position: absolute;top:#{params[:top]}px;left:#{params[:indent]}px;"
         style << "width:#{params[:subject_width] - params[:indent]}px;" if params[:subject_width]
         
         output = view.content_tag 'div', subject, :class => options[:css], :style => style, :title => options[:title]
index 8ec94f3a987eefb3897ae7cc72ffb67a08ef1dc2..f7c76e41b6c2db27011758124acaac262616727f 100644 (file)
@@ -783,6 +783,7 @@ background-image:url('../images/close_hl.png');
 }
 
 .gantt_subjects { font-size: 0.8em; }
+.gantt_subjects div { line-height:1.2em;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; }
 
 .task {
   position: absolute;