davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.
https://iframe-resizer.com
Other
6.63k stars 978 forks source link

Value for minHeight can not be greater than maxHeight #1204

Closed kapilpipaliya closed 5 months ago

kapilpipaliya commented 5 months ago

Describe the bug minHeight and maxHeight not setting properly. I am getting error: Value for minHeight can not be greater than maxHeight for following code:

To Reproduce Steps to reproduce the behavior:

          el.addEventListener('load', () => iframeResizer({
                  checkOrigin: false,
                  minHeight: '99px',
                  maxHeight: '888px',
                  warningTimeout: 5000,
                  scrolling: true,
                }, el))

Expected behavior It should properly parse integer before checking min and max height.

davidjbradshaw commented 5 months ago

It expects a number, not a string.