summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-06 12:51:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-06 12:51:10 +0000
commitf6f7467cdd98f66af03dbf1c9e5a2ae7a05c10ea (patch)
treebc6bcfdc09d891e78f1518142b506aa94636410b /lib
parent4d0a955d3c86f4dbedca796aeb3f0c7e73b97a8b (diff)
downloadredmine-f6f7467cdd98f66af03dbf1c9e5a2ae7a05c10ea.tar.gz
redmine-f6f7467cdd98f66af03dbf1c9e5a2ae7a05c10ea.zip
Merged r4913, r4914, r4916 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@5013 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index db0b39d4f..f551f1c1a 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -357,7 +357,7 @@ module Redmine
end
subject << view.link_to_issue(issue)
subject << '</span>'
- html_subject(options, subject, :css => "issue-subject") + "\n"
+ html_subject(options, subject, :css => "issue-subject", :title => issue.subject) + "\n"
when :image
image_subject(options, issue.subject)
when :pdf
@@ -709,9 +709,10 @@ module Redmine
end
def html_subject(params, subject, options={})
- output = "<div class=' #{options[:css] }' style='position: absolute;line-height:1.2em;height:16px;top:#{params[:top]}px;left:#{params[:indent]}px;overflow:hidden;'>"
- output << subject
- output << "</div>"
+ 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]
@subjects << output
output
end