[DE PE SSE mobile] Fix Bug 59914
This commit is contained in:
parent
f564b2c94a
commit
8c7a5bafef
|
@ -7,20 +7,11 @@ const ViewSharingSettings = props => {
|
||||||
const sharingSettingsUrl = props.sharingSettingsUrl;
|
const sharingSettingsUrl = props.sharingSettingsUrl;
|
||||||
const _t = t('Common.Collaboration', {returnObjects: true});
|
const _t = t('Common.Collaboration', {returnObjects: true});
|
||||||
|
|
||||||
function resizeHeightIframe(selector) {
|
|
||||||
const iFrame = document.querySelector(selector);
|
|
||||||
iFrame.height = iFrame.contentWindow.document.body.scrollHeight;
|
|
||||||
};
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
resizeHeightIframe('#sharing-placeholder iframe');
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
|
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
|
||||||
<div id="sharing-placeholder" className="sharing-placeholder">
|
<div id="sharing-placeholder" className="sharing-placeholder">
|
||||||
<iframe width="100%" frameBorder={0} scrolling="0" align="top" src={sharingSettingsUrl}></iframe>
|
<iframe width="100%" height="500" frameBorder={0} scrolling="0" align="top" src={sharingSettingsUrl}></iframe>
|
||||||
</div>
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue