diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 46f6ec6a0..39fdc5cde 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -769,10 +769,18 @@ module Redmine
end
# Renders the tooltip
if options[:issue] && coords[:bar_start] && coords[:bar_end]
- output << "
".html_safe
- output << ''.html_safe
- output << view.render_issue_tooltip(options[:issue]).html_safe
- output << "
".html_safe
+ s = view.content_tag(:span,
+ view.render_issue_tooltip(options[:issue]).html_safe,
+ :class => "tip")
+ style = ""
+ style << "position: absolute;"
+ style << "top:#{params[:top]}px;"
+ style << "left:#{coords[:bar_start]}px;"
+ style << "width:#{coords[:bar_end] - coords[:bar_start]}px;"
+ style << "height:12px;"
+ output << view.content_tag(:div, s.html_safe,
+ :style => style,
+ :class => "tooltip")
end
@lines << output
output