summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-05-08 03:44:33 +0000
committerGo MAEDA <maeda@farend.jp>2020-05-08 03:44:33 +0000
commitdc20ffcfaeb9ac6fcbf126053d486f8efee41542 (patch)
tree96a9793386a5f4e1b0bb74d6325a8ae7156ef087 /app
parentd4414571c12706642871722231862fdb37eafa65 (diff)
downloadredmine-dc20ffcfaeb9ac6fcbf126053d486f8efee41542.tar.gz
redmine-dc20ffcfaeb9ac6fcbf126053d486f8efee41542.zip
Parent task subject column in gantt is not fully displayed when widened (#33220).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19756 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/gantts/show.html.erb13
1 files changed, 8 insertions, 5 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb
index 348d04b69..8265ccc9d 100644
--- a/app/views/gantts/show.html.erb
+++ b/app/views/gantts/show.html.erb
@@ -177,14 +177,17 @@
<% end %>
<% end %>
</td>
-<% @query.columns.each do |column| %>
- <% next if Redmine::Helpers::Gantt::UNAVAILABLE_COLUMNS.include?(column.name) %>
- <td class="gantt_<%= column.name %>_column gantt_selected_column <%= 'last_gantt_selected_column' if @query.columns.last == column %>" id="<%= column.name %>">
+<%
+ @query.columns.each do |column|
+ next if Redmine::Helpers::Gantt::UNAVAILABLE_COLUMNS.include?(column.name)
+ column_name = column.name.to_s.tr('.', '_')
+%>
+ <td class="gantt_<%= column_name %>_column gantt_selected_column <%= 'last_gantt_selected_column' if @query.columns.last == column %>" id="<%= column_name %>">
<%
style = "position: relative;"
style += "height: #{t_height + 24}px;"
%>
- <%= content_tag(:div, :style => style, :class => "gantt_#{column.name}_container gantt_selected_column_container") do %>
+ <%= content_tag(:div, :style => style, :class => "gantt_#{column_name}_container gantt_selected_column_container") do %>
<%
style = "height: #{t_height}px;"
style += 'overflow: hidden;'
@@ -195,7 +198,7 @@
style += 'background: #eee;'
%>
<%= content_tag(:div, content_tag(:p, column.caption, :class => 'gantt_hdr_selected_column_name'), :style => style, :class => "gantt_hdr") %>
- <%= content_tag(:div, :class => "gantt_#{column.name} gantt_selected_column_content") do %>
+ <%= content_tag(:div, :class => "gantt_#{column_name} gantt_selected_column_content") do %>
<%= @gantt.selected_column_content({:column => column, :top => headers_height + 8, :zoom => zoom, :g_width => g_width}).html_safe %>
<% end %>
<% end %>