From e749085682d331cbd7f2d77ea54677618731361b Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 2 Dec 2022 15:09:10 +0400 Subject: [PATCH] [DE PE SSE mobile] Fix Bug 59989 --- apps/common/mobile/lib/view/SharingSettings.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/common/mobile/lib/view/SharingSettings.jsx b/apps/common/mobile/lib/view/SharingSettings.jsx index b8a36fc453..6240961f5d 100644 --- a/apps/common/mobile/lib/view/SharingSettings.jsx +++ b/apps/common/mobile/lib/view/SharingSettings.jsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect } from 'react'; import { Navbar, Page } from 'framework7-react'; import { useTranslation } from 'react-i18next'; @@ -7,15 +7,20 @@ const ViewSharingSettings = props => { const sharingSettingsUrl = props.sharingSettingsUrl; const _t = t('Common.Collaboration', {returnObjects: true}); - function resizeHeightIframe(iFrame) { + function resizeHeightIframe(selector) { + const iFrame = document.querySelector(selector); iFrame.height = iFrame.contentWindow.document.body.scrollHeight; }; + useEffect(() => { + resizeHeightIframe('#sharing-placeholder iframe'); + }, []); + return (
- +
)