Comments (10)
Thanks for reporting the issue. I can't reproduce it, but I can guess what you're facing. Could you please provide the exact start and end time of the event you are resizing?
from calendar.
from calendar.
Ok. The point is that now in the month view, changes always occur in the form of plus or minus 1 day. Thus, if an event starts at 4pm and ends at 9am the next day, then it cannot be reduced by 1 day, because its duration is already less than 1 day.
The obvious solution would be to allow the end of the event to be reduced to, say, 5pm in this case, but in that case we will lose the original duration of the event as soon as we reduce it to the minimum value. That is, by reducing and then increasing the event, we will not get the original duration. I hope this makes sense.
What solution do you think would be the right one for such cases?
from calendar.
from calendar.
Yes, but anyway, I think the calendar behavior is really non-obvious in such cases.
I'll leave this ticket open, maybe there will be an idea how to improve the behavior. For example, FullCalendar seems to allow only all-day events to be resized in month view.
from calendar.
from calendar.
If it starts 2022-06-23 9:00am and ends 2022-06-24 5:30pm if you reduce it to a one day event then end date = 2022-06-23 5:30pm.
This is exactly how it works now.
maybe just make it end at 23:59 if end date < start date
This is similar to what I wrote above. In this case, we are faced with the non-obvious result that by reducing and then increasing the event, we will not get the original duration.
from calendar.
from calendar.
@AdrianGzzEsc, if you can prepare a JS Bin (or similar) example, then maybe I can help you.
from calendar.
I'll leave this ticket open, maybe there will be an idea how to improve the behavior. For example, FullCalendar seems to allow only all-day events to be resized in month view.
I'm closing this ticket for the time being with the possibility of reopening it if necessary.
from calendar.
Related Issues (20)
- Method addEvent bug HOT 4
- setContact action improvement HOT 1
- Method updateEvent bug HOT 3
- Editable Option not Working HOT 2
- buttonText option not Working HOT 2
- updating all events HOT 1
- right click on event triggers dragging HOT 4
- Undefined error (reading 'update') while importing Interaction plugin HOT 3
- flexibleSlotTimeLimits ignores background events HOT 4
- incorrect date click information HOT 8
- eventContent HOT 4
- Use Recurrence rule in calendar HOT 1
- Possibility to add pagination HOT 2
- Can I restrict the start and end date of a view HOT 1
- Selectable doesn't work inside a shadow root HOT 3
- Can be time hidden for allDay events in dayGridMonth view? HOT 5
- How to use view object HOT 8
- Add an external event HOT 2
- Duplicate calling eventSources.events function in dayGridMonth view HOT 4
- default event padding HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar.