timesheet.js icon indicating copy to clipboard operation
timesheet.js copied to clipboard

Auto-resize DIV or sections

Open aso824 opened this issue 10 years ago • 3 comments

Default <section> width is hardcoded to 59px. I suggest to add function to auto resize each section or div (not prefered) to include all data. Default settings cover 11 years.

aso824 avatar Mar 03 '15 22:03 aso824

I worked on this one and its possible to add year gap from min to max. but its not resizing it is adding scroll on bottom. If you do resize i think it will look too much compressed and nothing will be visible. Check it here https://github.com/sbstjn/timesheet.js/pull/33

kilgaloon avatar Mar 06 '15 08:03 kilgaloon

new Timesheet('timesheet-default', 1989, 2017, [
  ['1989', '09/1989', 'A freaking awesome time', 'lorem'],
  ['06/2002', '09/2003', 'Some great memories', 'ipsum'],
  ['2003', 'Had very bad luck'],
  ['10/2003', '2006', 'At least had fun', 'dolor'],
  ['02/2005', '05/2006', 'Enjoyed those times as well', 'ipsum'],
  ['07/2005', '09/2005', 'Bad luck again', 'default'],
  ['10/2005', '2008', 'For a long time nothing happened', 'dolor'],
  ['01/2008', '05/2009', 'LOST Season #4', 'lorem'],
  ['01/2009', '05/2009', 'LOST Season #4', 'lorem'],
  ['02/2010', '05/2010', 'LOST Season #5', 'lorem'],
  ['09/2009', '06/2017', 'FRINGE #1 & #2', 'ipsum']
]);

willin avatar Aug 15 '17 16:08 willin

If you want, you can test this, It is in PHP, not JS : http://madvic.net/timesheet/

madvik avatar Aug 23 '17 15:08 madvik