-
Notifications
You must be signed in to change notification settings - Fork 34
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
Experiment/cards #47
Experiment/cards #47
Conversation
const [elementHeight, setElementHeight] = useState(0); | ||
|
||
// Check iframe height every second in case it changes somehow. | ||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try attaching this to the iframe onload?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not. That could work but I was worried about possibly changing height of the card. But then again do we want to expand iframe to cover the whole card or is it better to let scrollbar handle it.
Requirements for a pull request
Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
Description of the Change
Alternate Designs
Possible Drawbacks
Verification Process
Release Notes