From a6ca51786ddfb077ba61bfdb69271b7104fca94a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 17 May 2019 01:25:05 +0000 Subject: [PATCH] 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 --- app/views/gantts/show.html.erb | 6 +++--- public/stylesheets/application.css | 5 ++++- public/stylesheets/responsive.css | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 999f8f816..f9c35ebc9 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -141,12 +141,12 @@ -
+ <% 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;' %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 3f17d28c9..f4f4a8f78 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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; diff --git a/public/stylesheets/responsive.css b/public/stylesheets/responsive.css index 6bec53560..aa5502ee6 100644 --- a/public/stylesheets/responsive.css +++ b/public/stylesheets/responsive.css @@ -712,6 +712,7 @@ .gantt_subjects_column .gantt_hdr { width: 100% !important; right: 0 !important; /* [2] */ + border-right: solid 1px #c0c0c0; } #gantt_area { -- 2.39.5