-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix embed overflow beyond iframe #87
base: main
Are you sure you want to change the base?
fix embed overflow beyond iframe #87
Conversation
👋 @Muhammad-Owais-Warsi while this fixes the initial issue it doesn't really solve the problem. Can you review the expected behavior again and if none of those options work can you provide a record of testing then I can accept this PR. |
Hey @erhilse , the changes I made, give me the following result Let me know if I misunderstood something. |
@Muhammad-Owais-Warsi the issue mentions this:
Ideally we get the height of the iframe dynamically instead of hardcoding a value that could potentially change. |
Oh! Thanks @erhilse for clearing the doubt. I''ll look, on how to fetch the content height and change the iframe height dynamically. |
Hey @erhilse, |
@Muhammad-Owais-Warsi - We are trying to avoid the scrolling and cutting off content. You could open a PR on OpenCollectives who are also participating in Hacktoberfest to implement the feature needed. |
Thanks @erhilse , will lookout to their repo. |
It's live and tested it, but I think the issue persits. |
@Muhammad-Owais-Warsi - it doesn't look like you've added in any code to support the new feature. You'll need to set up an event listener like they have in their PR to get the value once the event has fired. |
Actually I didn't updated the PR yet. I'll update and will let you know. Thanks. |
Hey @erhilse, I've made the changes, please do review and let me know the changes if needed. |
Hey @Muhammad-Owais-Warsi - Sorry I haven't gotten back to you. I was reviewing your PR and came across another issue and wanted to discuss with the team. The iframe now loads at the correct size but when you are interacting with it and go to the next screen it resizes which is good but if you go back a step it miscalculates the step. Another thing I came across was there is no event to track when the faq open/close so if you open one it gets cut off on the iframe. That being said I think we are going to move forward with the approach you have but just ask that on the iframe you remove the |
Hey @erhilse, thanks for reviewing the PR and pointing out the issues. Just to clarify, I only need to remove |
Yeah, that should allow us to scroll if the content is larger than the iframe |
I have updated the code, please review and let me know the issues if any. Thanks! |
What should this PR do?
Fixed some styling in order to prevent embed overflow beyond iframe.
What issue does this relate to?
#60
What are the acceptance criteria?