Just some cleanup
This commit is contained in:
parent
cdc7e55a92
commit
b03707853a
3 changed files with 63 additions and 88 deletions
|
|
@ -50,24 +50,6 @@ export class EventRenderer {
|
|||
// Use strategy to render events
|
||||
eventRenderer.renderEvents(events, calendarConfig);
|
||||
|
||||
// Debug: Check if events are actually in DOM after rendering
|
||||
setTimeout(() => {
|
||||
const allRenderedEvents = document.querySelectorAll('swp-event');
|
||||
console.log(`EventRenderer: DOM check - ${allRenderedEvents.length} swp-event elements found in DOM`);
|
||||
|
||||
if (allRenderedEvents.length > 0) {
|
||||
const firstEvent = allRenderedEvents[0] as HTMLElement;
|
||||
console.log('EventRenderer: First event DOM details:', {
|
||||
visible: firstEvent.offsetWidth > 0 && firstEvent.offsetHeight > 0,
|
||||
offsetParent: !!firstEvent.offsetParent,
|
||||
computedDisplay: window.getComputedStyle(firstEvent).display,
|
||||
computedVisibility: window.getComputedStyle(firstEvent).visibility,
|
||||
computedOpacity: window.getComputedStyle(firstEvent).opacity,
|
||||
parentElement: firstEvent.parentElement?.tagName
|
||||
});
|
||||
}
|
||||
}, 100);
|
||||
|
||||
console.log(`EventRenderer: Successfully rendered ${events.length} events`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue