Scroll To Top
window.addEventListener('load', function() {
// Wait a moment to be sure the widget is fully rendered
setTimeout(function() {
var widgetContainer = document.getElementById('contact-us-toggle');
if (widgetContainer) {
// Find the container with the Material UI classes; adjust the selector if needed.
var paperEl = widgetContainer.querySelector('.MuiPaper-root');
if (paperEl) {
// Force a fixed height (e.g., 400px) for the chat window container.
paperEl.style.height = '400px';
paperEl.style.minHeight = '400px';
// Optional: ensure it sits above other content
paperEl.style.zIndex = '99999';
console.log('Chat widget container resized.');
}
}
}, 1000); // adjust the delay if needed
});