-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix multiday events rendering bug #67
Fix multiday events rendering bug #67
Conversation
And @okcompute king of bug is still present, but in |
OK, all good now in both cultures, this fixes both bugs :) @jquense can you take a look please? It seems to also resolve the interrogations raised by @KerenChandran in #66 since the end date is included. |
hi there thanks for the the contribution, I will take a closer look when I get a moment but a cursory glance has me I bit confused by what is going on and why the changes were made. In particular I don't think that math round is the right thing here... could you explain why you are using it? in general "because it made these dates correct" isn't great since there are A LOT of possibilities on a calendar and we need to not break other cases accidentally |
Well, I see that the date diff calculation for |
As I was diving into the PR here I ended up changing stuff and it ultimately was easier just to commit may changes. Thanks again for the contribution it helped! |
Glad I could help! Thanks for the fix :) You are also welcome to take some of the updates I made to the And please publish on NPM :) |
@@ -25,7 +25,7 @@ | |||
"clean:examples": "rimraf examples/static", | |||
"less": "lessc -x src/less/styles.less ./lib/css/react-big-calendar.css", | |||
"assets": "cpy src/less/* lib/less", | |||
"build": "npm run clean && babel src --out-dir lib && npm run assets & npm run less", | |||
"build": "npm run clean && babel src --out-dir lib && npm run assets && npm run less", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't missing an &
the single &
is how you run parallel tasks on windows, I assume not so on Mac/*nix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single &
is also for parallel tasks on OSX/unix, but I don't think it's a good idea to run these tasks in parallel because if you wait for an exit code from the command, you'll get it before it completes, in addition to have loose output consistency (you don't know when exactly it finishes)...
Fixes #36.
Inspired from SlavaKvak@a359db3
The main change is that
slots
andspan
are now rounded, the same waypadding
was already rounded. NoMath.floor
anymore.