diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index bb99b9fc8..fa3c46f46 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -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] diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 8ec94f3a9..f7c76e41b 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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;