-
Notifications
You must be signed in to change notification settings - Fork 55
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
Popup opens with a scroll bar #133
Comments
Hi @salazarm, I have the same issue. How did you solve it? Thanks |
Same here. Why was this closed? |
same issue |
@daviddutch @OzzieOrca @ryans1224 - The scrollbar appears when the iframe content's height exceeds the height of the parent container. Unfortunately, this is not something we can change within the That said, Calendly's public api released an endpoint that allows you to retrieve the available time slots by event type, so it's possible that you could change the height based on the number of available times returned by the api. https://developer.calendly.com/api-docs/6a1be82aef359-list-event-type-available-times |
I was able to fix this by adding height, as stated under Advanced Usage at https://www.npmjs.com/package/react-calendly:
|
Version 4.3.1 updates the This allows you to resize the parent container when the Calendly scheduling page's height changes. For example: import {
InlineWidget,
useCalendlyEventListener,
} from "react-calendly";
function App() {
const [height, setHeight] = useState('500px');
const onPageHeightResize = (e) => setHeight(e.data.payload.height);
useCalendlyEventListener({
onPageHeightResize
})
return (
<>
<InlineWidget
styles={{ height }}
url="https://calendly.com/acmesales"
/>
</>
);
} |
Is there a work-around for this? It looks like most of the CSS is in the iframe :\
I'm passing undefined for pageSettings
The text was updated successfully, but these errors were encountered: