Fix slide modal preview sizing
This commit is contained in:
1 parent
9e865bcae9
commit
c923dcc1c5
7 files changed
+18
-6
No files matched your search
@@ -792,7 +792,12 @@ import { createSlideAnimationEditor } from '/assets/js/slides/slide-animation-ed
|
||||
var containerStyle = window.getComputedStyle(stageContainer);
|
||||
var availableWidth = stageContainer.clientWidth - parseFloat(containerStyle.paddingLeft) - parseFloat(containerStyle.paddingRight);
|
||||
var maxHeight = parseFloat(window.getComputedStyle(slidePreviewStage).maxHeight);
|
||||
if (!availableWidth || !Number.isFinite(maxHeight)) {
|
||||
if (!Number.isFinite(maxHeight)) {
|
||||
slidePreviewStage.style.removeProperty('width');
|
||||
slidePreviewStage.style.removeProperty('margin-inline');
|
||||
return;
|
||||
}
|
||||
if (!availableWidth) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user