Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-resize DIV or sections #29

Open
aso824 opened this issue Mar 3, 2015 · 3 comments
Open

Auto-resize DIV or sections #29

aso824 opened this issue Mar 3, 2015 · 3 comments

Comments

@aso824
Copy link

aso824 commented Mar 3, 2015

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.

@kilgaloon
Copy link

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 #33

@willin
Copy link

willin commented Aug 15, 2017

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']
]);

@madvik
Copy link

madvik commented Aug 23, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants