Merge pull request #20352 from neogeek/zoom-min-height-centered-preview

Set min-height relative to the viewport and the zoom level.
This commit is contained in:
Valentin Palkovic 2022-12-29 13:07:15 +01:00 committed by GitHub
commit e4377dcab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ export class ZoomIFrame extends Component<IZoomIFrameProps> {
if (browserSupportsCssZoom()) {
Object.assign(this.iframe.contentDocument.body.style, {
zoom: 1 / scale,
minHeight: `calc(100vh / ${1 / scale})`,
});
} else {
Object.assign(this.iframe.contentDocument.body.style, {