Merge branch 'hotfix/v2.6.1' into bugfix/Bug69601

This commit is contained in:
Alexey Safronov 2024-08-13 18:23:49 +04:00
commit a2ee76937e
3 changed files with 5 additions and 3 deletions

View File

@ -160,7 +160,7 @@ const EmbeddingPanelComponent = (props: EmbeddingPanelProps) => {
);
const fileConfig = {
mode: "viewer",
mode: "editor",
width: `${widthValue}${dataDimensions[0].label}`,
height: `${heightValue}${dataDimensions[1].label}`,
frameId: "ds-frame",

View File

@ -305,7 +305,7 @@ const Editor = ({
newConfig.events.onRequestClose = onSDKRequestClose;
}
if (config?.startFilling) {
if (config?.startFilling && !IS_ZOOM) {
newConfig.events.onRequestStartFilling = () =>
onSDKRequestStartFilling?.(t("Common:ShareAndCollect"));
}

View File

@ -124,7 +124,9 @@ const Body = ({
const onBodyResize = React.useCallback(() => {
if (bodyRef && bodyRef.current) {
setBodyHeight(bodyRef.current.offsetHeight);
setTimeout(() => {
setBodyHeight(bodyRef.current!.offsetHeight);
}, 20);
}
}, []);