question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

resizer not working

See original GitHub issue

I had previously this issue, which I fixed by copying the resizing file on my own static folder.

So, the required external javascript is now available on the page as I can see on the <head> and I also checked it is loading properly.

<script src="/js/iframeResizer.contentWindow.min.js" data-react-helmet="true"></script>

That did not fix the resizing issue though. It still shows an <iframe> of about 150px height. The content in question is available. I tested both with image and pdf files.

This is the iframe-resizer component:

                     <IframeResizer
                        log
                        src={src}
                        checkOrigin={[
                            'http://127.0.0.1:8000',
                            'http://127.0.0.1:8001',
                            'http://localhost',
                            'http://localhost:8000',
                        ]}
                        style={{ width: '1px', minWidth: '100%' }}
                        heightCalculationMethod="bodyOffset"
                    />

This is the log output:

Screenshot 2020-04-06 at 10 47 44

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
BernardAcommented, Apr 25, 2020

That would be extremely odd. It’s called ‘resizer’ for a reason.

From read.me:

This library is the official React interface for iframe-resizer, which enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content. It provides a range of features to address the most common issues with using iFrames, these include:

Height and width resizing of the iFrame to content size.

0reactions
davidjbradshawcommented, Apr 30, 2020

@jamie29w the page in your iframe is going to be doing something weird. Sorry I don’t have the time to figure it out for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image resizer doesnt work anymore for some reason #17673
steps to reproduce the problem are: select a single, or group, of picture to resize... then right click them and select "Resize pictures"....
Read more >
Support - Image Resizer
Help and Troubleshooting. Before you contact us! Step 1: See if your problem's already diagnosed. We designed ImageResizer to be as easy to...
Read more >
Resizer Not Working - WordPress.org
We want to put the plugin in the top bar and the footer. But those are not locations for widgets. The shortcode does...
Read more >
New Paint App resizer isn't working - Microsoft Community
Tried repair app, reset app and reboot, but no luck. Resize is useless now. Have to use another app to resize anything. Using...
Read more >
Shopify Image resizer not working
Hey there, @hverdagsluxus. Thanks for jumping into the thread. Usually, this issue is caused by browsers or devices holding into some saved data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found