1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-08 16:41:31 +00:00

Fix broken gantt layout due to r18171 (#27672).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18172 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-05-17 01:25:05 +00:00
parent 0328b5671a
commit a6ca51786d
3 changed files with 8 additions and 4 deletions

View File

@ -141,12 +141,12 @@
<table class='gantt-table'>
<tr>
<td style="width:<%= subject_width %>px;" class="gantt_subjects_column">
<td style="width:<%= @query.draw_selected_columns ? subject_width + 1 : subject_width + 2 %>px;" class="gantt_subjects_column">
<%
style = ""
style += "position:relative;"
style += "height: #{t_height + 24}px;"
style += "width: #{subject_width}px;"
style += "width: #{subject_width + 1}px;"
%>
<%= content_tag(:div, :style => style, :class => "gantt_subjects_container #{'draw_selected_columns' if @query.draw_selected_columns}") do %>
<%
@ -159,7 +159,7 @@
<%
style = ""
style += "z-index: 1;"
style += "width: #{subject_width}px;"
style += "width: #{subject_width + 1}px;"
style += "height: #{t_height}px;"
style += 'overflow: hidden;'
%>

View File

@ -1331,9 +1331,12 @@ table.gantt-table td {
white-space: nowrap;
}
td.gantt_selected_column, td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container {
td.gantt_selected_column {
width: 50px;
}
td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container {
width: 49px;
}
.task {
position: absolute;

View File

@ -712,6 +712,7 @@
.gantt_subjects_column .gantt_hdr {
width: 100% !important;
right: 0 !important; /* [2] */
border-right: solid 1px #c0c0c0;
}
#gantt_area {