[DE PE SSE mobile] Fix Bug 59914

This commit is contained in:
SergeyEzhin 2022-12-09 16:04:33 +04:00
parent f564b2c94a
commit 8c7a5bafef

View file

@ -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>
) )