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

Can select right-most cell if worktime column is disabled #9

Open
marcelstoer opened this issue May 8, 2019 · 1 comment
Open

Can select right-most cell if worktime column is disabled #9

marcelstoer opened this issue May 8, 2019 · 1 comment

Comments

@marcelstoer
Copy link
Contributor

If you uncomment https://github.com/yn1323/TimeTable.js/blob/master/js/sample.js#L77 or set workTime: false the last column is not displayed. However, that leads to two bugs actually:

  • the right-most column is too wide
  • you can drag a bar across it i.e. that last column is not selectable
@DonBrowny
Copy link

DonBrowny commented Jun 4, 2019

I also faced the same issue while using this library to create a 24 hour tracker. The first issue is a css one caused the border (i ain't a css expert to fix that :( ) and the root cause for the second issue are these two lines of code canvas width and getting the last cell

I increased the canvas width by removing the subtract part and replaced the last cell getter by this obj.time = $(target).attr("data-time");

But in your case ignore the getter (getting the last cell) fix. Hope this helps :)

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

2 participants