Fixed Bug 67366 for Desktop Editors
This commit is contained in:
parent
27e38fc61d
commit
899a3f5db2
@ -145,6 +145,10 @@ const Root = ({
|
||||
selectFileDialogVisible
|
||||
)
|
||||
calculateAsideHeight();
|
||||
|
||||
if (isSharingDialogVisible) {
|
||||
setTimeout(calculateAsideHeight, 10);
|
||||
}
|
||||
}, [
|
||||
isSharingDialogVisible,
|
||||
isVisibleSelectFolderDialog,
|
||||
|
@ -230,15 +230,20 @@ export const calculateAsideHeight = () => {
|
||||
|
||||
if (viewPort.widgetType === "window") {
|
||||
const { captionHeight } = viewPort;
|
||||
const backdrop = document.getElementsByClassName(
|
||||
"backdrop-active",
|
||||
)[0] as HTMLElement;
|
||||
const backdrop =
|
||||
(document.getElementsByClassName("backdrop-active")[0] as HTMLElement) ??
|
||||
(document.getElementsByClassName(
|
||||
"modal-backdrop-active",
|
||||
)[0] as HTMLElement);
|
||||
const aside = document.getElementsByTagName("aside")[0];
|
||||
|
||||
if (aside && backdrop) {
|
||||
backdrop.style.height =
|
||||
aside.style.height = `calc(100dvh - ${captionHeight}px`;
|
||||
backdrop.style.marginTop = aside.style.top = `${captionHeight}px`;
|
||||
if (backdrop) {
|
||||
backdrop.style.height = `calc(100dvh - ${captionHeight}px`;
|
||||
backdrop.style.marginTop = `${captionHeight}px`;
|
||||
}
|
||||
if (aside) {
|
||||
aside.style.height = `calc(100dvh - ${captionHeight}px`;
|
||||
aside.style.top = `${captionHeight}px`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user