Skip to content

fixes #339 #345

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

Merged
merged 1 commit into from
Jun 3, 2025
Merged

fixes #339 #345

merged 1 commit into from
Jun 3, 2025

Conversation

rwilson504
Copy link
Owner

This pull request introduces a new timeSlotWrapperRenderer to enhance the rendering of time slots in the calendar component. The renderer calculates dynamic minimum heights based on the number of timeslots, improving the visual flexibility of the calendar. Key changes include adding the new renderer, integrating it into the CalendarControl component, and updating the relevant imports and exports.

New Feature: timeSlotWrapperRenderer

  • Added a new timeSlotWrapperRenderer in Calendar/Calendar/renderers/timeSlotWrapperRenderer.tsx. This renderer dynamically adjusts the minHeight of time slots based on the timeslots property, enhancing the flexibility of the calendar's appearance.

Integration into CalendarControl

  • Updated the CalendarControl component to include the timeSlotWrapperRenderer. The timeSlotWrapper property is now set to use the new renderer, passing the timeslots property for dynamic height calculation. [1] [2]

Import/Export Updates

  • Added timeSlotWrapperRenderer to the renderers module's exports in Calendar/Calendar/renderers/index.ts.
  • Updated imports in Calendar/Calendar/CalendarControl.tsx to include timeSlotWrapperRenderer.

Fixes #339

@rwilson504 rwilson504 merged commit 0a320a6 into master Jun 3, 2025
@rwilson504 rwilson504 deleted the Issue-339 branch June 3, 2025 17:24
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.

[BUG] [Calendar] Size of entry in week view does match the slots
1 participant