Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/taskjuggler/reports/GanttChart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def initialize(now, weekStartsMonday, columnDef, table = nil, markdate = nil)
@@scales = [
{ 'name' => 'hour', 'stepSize' => 20, 'stepsToFunc' => :hoursTo,
'minTimeOff' => 5 * 60 },
{ 'name' => 'day', 'stepSize' => 20, 'stepsToFunc' => :daysTo,
{ 'name' => 'day', 'stepSize' => 40, 'stepsToFunc' => :daysTo,
'minTimeOff' => 6 * 60 * 60 },
{ 'name' => 'week', 'stepSize' => 20, 'stepsToFunc' => :weeksTo,
{ 'name' => 'week', 'stepSize' => 40, 'stepsToFunc' => :weeksTo,
'minTimeOff' => 24 * 60 * 60 },
{ 'name' => 'month', 'stepSize' => 35, 'stepsToFunc' => :monthsTo,
{ 'name' => 'month', 'stepSize' => 80, 'stepsToFunc' => :monthsTo,
'minTimeOff' => 5 * 24 * 60 * 60 },
{ 'name' => 'quarter', 'stepSize' => 28, 'stepsToFunc' => :quartersTo,
{ 'name' => 'quarter', 'stepSize' => 36, 'stepsToFunc' => :quartersTo,
'minTimeOff' => -1 },
{ 'name' => 'year', 'stepSize' => 20, 'stepsToFunc' => :yearsTo,
{ 'name' => 'year', 'stepSize' => 40, 'stepsToFunc' => :yearsTo,
'minTimeOff' => -1 }
]
# This points to one of the scales above and marks the current scale.
Expand Down
2 changes: 1 addition & 1 deletion lib/taskjuggler/reports/TableReport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def generateHeaderCell(columnDef)
# The maximum width of the chart. In case it needs more space, a
# scrollbar is shown or the chart gets truncated depending on the output
# format.
gantt.viewWidth = columnDef.width ? columnDef.width : 450
gantt.viewWidth = columnDef.width ? columnDef.width : 1200
column = ReportTableColumn.new(@table, columnDef, '')
column.cell1.special = gantt
column.cell2.hidden = true
Expand Down
4 changes: 2 additions & 2 deletions taskjuggler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ EOT
(`git ls-files -- tasks`).split("\n") +
%w( .gemtest taskjuggler.gemspec Rakefile ) +
# Generated files, not contained in Git repository.
%w( data/tjp.vim ) + Dir.glob('manual/html/**/*') + Dir.glob('man/*.1')
Dir.glob('manual/html/**/*') + Dir.glob('man/*.1')
s.bindir = 'bin'
s.executables = (`git ls-files -- bin`).split("\n").
map { |fn| File.basename(fn) }
s.test_files = (`git ls-files -- test`).split("\n") +
(`git ls-files -- spec`).split("\n")

s.extra_rdoc_files = %w( README.rdoc COPYING CHANGELOG )
s.extra_rdoc_files = %w(README.rdoc COPYING)

s.add_dependency('mail', '~> 2.7', '>= 2.7.1')
s.add_runtime_dependency('term-ansicolor', '~> 1.7', '>= 1.7.1')
Expand Down