"
+ output = "
"
output << subject
output << "
"
@subjects << output
diff --git public/stylesheets/application.css public/stylesheets/application.css
index 8ec94f3..9b35665 100644
--- public/stylesheets/application.css
+++ public/stylesheets/application.css
@@ -783,6 +783,8 @@ background-image:url('../images/close_hl.png');
}
.gantt_subjects { font-size: 0.8em; }
+.gantt_subject { position: absolute; height: 16px; line-height: 1.2em; }
+.gantt_subject-text { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task {
position: absolute;
@@ -924,7 +926,6 @@ td.username img.gravatar {
/* Used on 12px Gravatar img tags without the icon background */
.icon-gravatar {
- float: left;
margin-right: 4px;
}
diff --git test/unit/lib/redmine/helpers/gantt_test.rb test/unit/lib/redmine/helpers/gantt_test.rb
index ec9b065..56205eb 100644
--- test/unit/lib/redmine/helpers/gantt_test.rb
+++ test/unit/lib/redmine/helpers/gantt_test.rb
@@ -283,11 +283,6 @@ class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
end
context ":html format" do
- should "add an absolute positioned div" do
- @response.body = @gantt.subject_for_project(@project, {:format => :html})
- assert_select "div[style*=absolute]"
- end
-
should "use the indent option to move the div to the right" do
@response.body = @gantt.subject_for_project(@project, {:format => :html, :indent => 40})
assert_select "div[style*=left:40]"
@@ -449,11 +444,6 @@ class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
end
context ":html format" do
- should "add an absolute positioned div" do
- @response.body = @gantt.subject_for_version(@version, {:format => :html})
- assert_select "div[style*=absolute]"
- end
-
should "use the indent option to move the div to the right" do
@response.body = @gantt.subject_for_version(@version, {:format => :html, :indent => 40})
assert_select "div[style*=left:40]"
@@ -615,11 +605,6 @@ class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
end
context ":html format" do
- should "add an absolute positioned div" do
- @response.body = @gantt.subject_for_issue(@issue, {:format => :html})
- assert_select "div[style*=absolute]"
- end
-
should "use the indent option to move the div to the right" do
@response.body = @gantt.subject_for_issue(@issue, {:format => :html, :indent => 40})
assert_select "div[style*=left:40]"