Skip to content
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

If the endTime is >=24, then set endTime to 23:59 #1651

Merged
merged 5 commits into from
Nov 22, 2023

Conversation

troldmand
Copy link
Collaborator

@troldmand troldmand commented Nov 14, 2023

Description

This prevents 0-length events to be created, and solves the bug in the most lazy and minimal way. Essentially, it validates if endTime is more than the allowed 23:59 maximum.

This also prevent the user in dragging a chostElement out of bounds, thus expanding the calender Box element and create a vertical scrollbar.

Screenshots

Before:
Screenshot 2023-11-14 at 17 24 17

After:
Screenshot 2023-11-14 at 20 23 27

Notes to reviewer

How to reproduce:

  • Go to calender view,
  • make the screen tall and slim,
  • drag to create a new event and drag it out of the bottom view.

Related issues

Resolves #1614

@troldmand troldmand requested a review from ziggabyte November 14, 2023 16:27
Copy link
Contributor

@ziggabyte ziggabyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I test this it seems to work as intended! Yay for a simple fix of a weird bug! :D
images

@ziggabyte ziggabyte merged commit 96c5f59 into main Nov 22, 2023
4 checks passed
@ziggabyte ziggabyte deleted the issue-1614/week-calender-dragging-bug branch November 22, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

You can drag-to-create events beyond the calendar
2 participants