Comments (13)
@ezmegy The version on the developer branch is 2.1.1, so if you fix it and create a PR, I will create new release with the fix.
from android-week-view.
@ezmegy Sorry for the late reply, so it only happens to you for 14:30 ? Or does it change when the zoom changes?
from android-week-view.
Hi, no worries. :)
I almost forgot about it myself because I turned off pastBackgroundColor and did not use it for a while.
Yes, so if I set this property to true, the colouring on the current day will either be until 14:30 or for the whole day, depending on the current time. (In example if now == 7:20 am, than today's column would be coloured until 14:30, if now == 16:15, than the whole column is coloured.)
Didn't test different time zones, mine was UTC+2 (now actually UTC+1 because of the daylight saving time).
from android-week-view.
@ezmegy Are you using min and max time ? 14:30 seems so random
from android-week-view.
I am, but It does indeed seem strange
Anyways, I think I'll be able to debug it a bit tomorrow (the 2.1.1 build too), I'll let you know if there's any new info.
from android-week-view.
@ezmegy I would certainly check what happens if you don't use min and max time, i think there is a calculation going wrong because of it.
from android-week-view.
Yep, that was it.
In WeekView.java
changed this line:
float beforeNow = (now.get(Calendar.HOUR_OF_DAY) + now.get(Calendar.MINUTE)/60.0f) * mHourHeight;
to this:
float beforeNow = (now.get(Calendar.HOUR_OF_DAY) - mMinTime + now.get(Calendar.MINUTE)/60.0f) * mHourHeight;
I wanted to create a pull request but saw that in the fork it was already changed :)
Which is nice 'cause someone already found and made the change but also weird because I can't see these changes in the web repo (and probably some others since the line numbering is offset too: in the forked version I have this line on 903, whereas if I browse it in the original (not my fork) then it's 885)...
Anyways, the bug is fixed I suppose :D
from android-week-view.
@ezmegy So it's working in the 2.1.1 release ?
from android-week-view.
@ezmegy Doesn't seem to be fixed ? https://github.com/Quivr/Android-Week-View/blob/develop/library/src/main/java/com/alamkanak/weekview/WeekView.java#L885
from android-week-view.
That's also the strange part: no.
If set gradle to 2.1.1, this line would be 879 and still without the fix: the - mMinTime
is missing...
(However, as mentioned when i forked it, the line was on 903 and did contain the fix.)
from android-week-view.
@ezmegy Aren't you just looking at the wrong line ? In your fork it's the same https://github.com/ezmegy/Android-Week-View/blob/develop/library/src/main/java/com/alamkanak/weekview/WeekView.java#L885
at line 903 (or 904) it is indeed fixed https://github.com/ezmegy/Android-Week-View/blob/develop/library/src/main/java/com/alamkanak/weekview/WeekView.java#L904
but that's also the case in this repo
https://github.com/Quivr/Android-Week-View/blob/develop/library/src/main/java/com/alamkanak/weekview/WeekView.java#L903
from android-week-view.
Oh wow, my guess is this was a nice SublimeText cache bug :D
(I had it open in multiple tabs plus the clipboard, and it just kept displaying it at wrong line numbers, but restarting the editor solved it: 885 is the winner.)
Anyways, you're right, my fork doesn't contain that line either, so it shouldn't be in the latest version of the develop branch either.
(Not sure about any branches/versions on your side at this point, I'll leave that up to you to figure out :))
from android-week-view.
@ezmegy Check version 2.1.2
from android-week-view.
Related Issues (20)
- Bug with goToHour method when time range is set HOT 3
- Serious bug in viewing events : not showing all events that are given HOT 1
- Bug: adding full day WeekViewEvent with same startDate and endDate results in single cell HOT 1
- Event not drawing on 31st day of month HOT 2
- Events Not loading after asynchronous call
- On Load scroll to current time, not 12am HOT 1
- disable fling doesn't seem to work correctly HOT 1
- Crash issue
- Enchanced : customize the date format
- Preview Render Problems HOT 1
- Add Event Dynamically HOT 3
- Crashes on API 28
- doesnt shows anything any help HOT 1
- Needs to Click the gototoday before showing all the events
- How to implement a multi-line String on header date
- Drag and Drop feature on marked Events HOT 3
- ε¨ζζ·»ε event δΈη΄θΏε
- Event title vertical alignment
- Multiple events on same day not showing
- is it possible to turn off zoom?
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 android-week-view.