Prevent text wrap in gantt subjects (#7280).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4913 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -709,7 +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;'>"
|
||||
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 << "width:#{params[:subject_width] - params[:indent]}px;" if params[:subject_width]
|
||||
|
||||
output = "<div class='#{options[:css]}' style='#{style}'>"
|
||||
output << subject
|
||||
output << "</div>"
|
||||
@subjects << output
|
||||
|
||||
Reference in New Issue
Block a user