mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-27 21:43:20 +03:00
fix: popup glitches caused by long calculations (#4511)
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
parent
d759608a6c
commit
889f83fc52
@ -112,8 +112,8 @@
|
||||
let oldModalHTML: HTMLElement | undefined = undefined
|
||||
|
||||
$: if (modalHTML !== undefined && oldModalHTML !== modalHTML) {
|
||||
clientWidth = -1
|
||||
clientHeight = -1
|
||||
clientWidth = modalHTML.clientWidth
|
||||
clientHeight = modalHTML.clientHeight
|
||||
oldModalHTML = modalHTML
|
||||
fitPopup(modalHTML, element, contentPanel)
|
||||
showing = true
|
||||
@ -127,7 +127,9 @@
|
||||
}
|
||||
|
||||
export function fitPopupInstance (): void {
|
||||
if (modalHTML) fitPopup(modalHTML, element, contentPanel)
|
||||
if (modalHTML) {
|
||||
fitPopup(modalHTML, element, contentPanel)
|
||||
}
|
||||
}
|
||||
|
||||
$: if ($deviceInfo.docWidth <= 900 && !docSize) docSize = true
|
||||
|
Loading…
Reference in New Issue
Block a user