Giter Site home page Giter Site logo

Event view column size about kvkcalendar HOT 8 CLOSED

anandabayu avatar anandabayu commented on May 14, 2024
Event view column size

from kvkcalendar.

Comments (8)

anandabayu avatar anandabayu commented on May 14, 2024 1

Hi, I realize it happens because my date was greater than 1 day.

start: 2020-02-19 10:00:00
end: 2020-02-20 15:00:00

if the start and end date are the same, the width will full.

I hope this can be handled with a different start date and end date.

from kvkcalendar.

TToldi avatar TToldi commented on May 14, 2024 1

Thanks for the reply!
I have just tried with these times and I get the same issue... I think maybe it would be good if they were added 1 after the other... at the moment it will insert the event in a gap if the time is free..
-Start. -End
"2020/05/19 12:00": "2020/05/19 15:00",
"2020/05/19 11:45": "2020/05/19 14:30",
"2020/05/19 12:45": "2020/05/19 15:30",
"2020/05/19 15:05": "2020/05/19 16:30",
"2020/05/19 10:45": "2020/05/19 12:30",
"2020/05/19 10:25": "2020/05/19 14:30"

from kvkcalendar.

kvyatkovskys avatar kvyatkovskys commented on May 14, 2024

Hi, need to check TimelineView.swift... where the width is calculated. 🤔

from kvkcalendar.

TToldi avatar TToldi commented on May 14, 2024

Hi,
Just a quick question.. I noticed that when you have more than 2 events in the same 'Hour/multiple hours' you start to get the same effect (The white space on the right).
Is it just me, or is this how it works? Believe it has something to do with the "countEventsInHour" function, maybe the +1? not quite sure
Would really appreciate it if you could let me know... If i figure it out I'll post it here too!

from kvkcalendar.

TToldi avatar TToldi commented on May 14, 2024

Just had another thought.. I believe it is calculating all the events between the start of the first event which is overlapping and the last ending event... so if you have multiple i.e 9 events in the space of 2/3 hours however within the first hour you only have 5 then you should get 5 columns and not 9... but at the moment you have 4 extra white spaces... Probably sounds a bit confusing, sorry!

from kvkcalendar.

kvyatkovskys avatar kvyatkovskys commented on May 14, 2024

Just had another thought.. I believe it is calculating all the events between the start of the first event which is overlapping and the last ending event... so if you have multiple i.e 9 events in the space of 2/3 hours however within the first hour you only have 5 then you should get 5 columns and not 9... but at the moment you have 4 extra white spaces... Probably sounds a bit confusing, sorry!

Hello,

You're right. I'm still working on improving the algorithm for calculating width of events in the same hour.
Perhaps, you have an event with a long duration.
Can you send the time of the events? I'll check.

from kvkcalendar.

TToldi avatar TToldi commented on May 14, 2024

Hello! Sorry to ask, is there any chance you have had a look at this? I still cant figure it out, not quite sure what is causing the issue

from kvkcalendar.

anandabayu avatar anandabayu commented on May 14, 2024

Hello! Sorry to ask, is there any chance you have had a look at this? I still cant figure it out, not quite sure what is causing the issue

Hi, can you attach the screenshot and the code? maybe I can help

from kvkcalendar.

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.