@@ -63,7 +63,7 g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom | |||
|
63 | 63 | g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max |
|
64 | 64 | t_height = g_height + headers_height |
|
65 | 65 | |
|
66 |
@gantt.render(: |
|
|
66 | @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width) | |
|
67 | 67 | %> |
|
68 | 68 | <table width="100%" style="border:0; border-collapse: collapse;"> |
|
69 | 69 | <tr> |
@@ -72,7 +72,6 t_height = g_height + headers_height | |||
|
72 | 72 | <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> |
|
73 | 73 | <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div> |
|
74 | 74 | <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;overflow:hidden;" class="gantt_hdr"></div> |
|
75 | <% top = headers_height + 8 %> | |
|
76 | 75 | |
|
77 | 76 | <%= @gantt.subjects %> |
|
78 | 77 | |
@@ -153,8 +152,6 if show_days | |||
|
153 | 152 | end |
|
154 | 153 | end %> |
|
155 | 154 | |
|
156 | <% top = headers_height + 10 %> | |
|
157 | ||
|
158 | 155 | <%= @gantt.lines %> |
|
159 | 156 | |
|
160 | 157 | <% |
General Comments 0
You need to be logged in to leave comments.
Login now