Skip to content

Commit

Permalink
Extracts gantt subjects styles to css (#7280).
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4916 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Feb 21, 2011
1 parent 727ce78 commit d78fa20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redmine/helpers/gantt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def pdf_new_page?(options)
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]
Expand Down
1 change: 1 addition & 0 deletions public/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d78fa20

Please sign in to comment.