You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pages in web frameworks can be identified by a route rather than an explicit filename (for example http://mysite.com/somesite/).
If you do not set the exceptPages setting (as you do not want any pages to be excluded), and the page in the iFrame does not have a name, this causes the plugin not to resize the iFrame on these lines:
I added a default value when _pageName is empty by doing the following:
if (!_pageName) {
_pageName = 'unnamed-pages';
}
This allows the plugin to work on unnamed pages, and also allows the caller to ignore all of these by setting the exceptPages to 'unnamed-pages' in configuration.
I was going to push my branch to your repository and raise a pull request but I was unable to (I do not have access to push branches), hence raising an issue instead.
The text was updated successfully, but these errors were encountered:
Pages in web frameworks can be identified by a route rather than an explicit filename (for example http://mysite.com/somesite/).
If you do not set the exceptPages setting (as you do not want any pages to be excluded), and the page in the iFrame does not have a name, this causes the plugin not to resize the iFrame on these lines:
if((_pageHeight <= base.options.minimumHeight && base.options.exceptPages.indexOf(_pageName) == -1)) {
tryFixIframe();
} else if (_pageHeight > base.options.minimumHeight && base.options.exceptPages.indexOf(_pageName) == -1) {
base.setIframeHeight(_pageHeight + base.options.heightOffset);
}
I added a default value when _pageName is empty by doing the following:
if (!_pageName) {
_pageName = 'unnamed-pages';
}
This allows the plugin to work on unnamed pages, and also allows the caller to ignore all of these by setting the exceptPages to 'unnamed-pages' in configuration.
I was going to push my branch to your repository and raise a pull request but I was unable to (I do not have access to push branches), hence raising an issue instead.
The text was updated successfully, but these errors were encountered: