Project

General

Profile

Defect #21775 » add_autoscroll_div.patch

Marius BĂLTEANU, 2016-01-21 00:33

View differences:

app/helpers/issues_helper.rb
105 105
  end
106 106

  
107 107
  def render_descendants_tree(issue)
108
    s = '<form><table class="list issues">'
108
    s = '<div class="autoscroll"><form><table class="list issues">'
109 109
    issue_list(issue.descendants.visible.preload(:status, :priority, :tracker).sort_by(&:lft)) do |child, level|
110 110
      css = "issue issue-#{child.id} hascontextmenu"
111 111
      css << " idnt idnt-#{level}" if level > 0
......
117 117
             content_tag('td', progress_bar(child.done_ratio)),
118 118
             :class => css)
119 119
    end
120
    s << '</table></form>'
120
    s << '</table></form></div>'
121 121
    s.html_safe
122 122
  end
123 123

  
app/views/issues/_relations.html.erb
7 7
<p><strong><%=l(:label_related_issues)%></strong></p>
8 8

  
9 9
<% if @relations.present? %>
10
<div class="autoscroll">
10 11
<form>
11 12
<table class="list issues">
12 13
<% @relations.each do |relation| %>
......
29 30
<% end %>
30 31
</table>
31 32
</form>
33
</div>
32 34
<% end %>
33 35

  
34 36
<%= form_for @relation, {
(3-3/5)