Git Product home page Git Product logo

Comments (10)

vkurko avatar vkurko commented on May 30, 2024

Hi @AdrianGzzEsc

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.

AdrianGzzEsc avatar AdrianGzzEsc commented on May 30, 2024

from calendar.

vkurko avatar vkurko commented on May 30, 2024

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.

AdrianGzzEsc avatar AdrianGzzEsc commented on May 30, 2024

from calendar.

vkurko avatar vkurko commented on May 30, 2024

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.

AdrianGzzEsc avatar AdrianGzzEsc commented on May 30, 2024

from calendar.

vkurko avatar vkurko commented on May 30, 2024

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.

AdrianGzzEsc avatar AdrianGzzEsc commented on May 30, 2024

from calendar.

vkurko avatar vkurko commented on May 30, 2024

@AdrianGzzEsc, if you can prepare a JS Bin (or similar) example, then maybe I can help you.

from calendar.

vkurko avatar vkurko commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.