소스 검색

Merge pull request #534 from fletcherhaz/min-height-fix

Fix min-height property not being removed on main window when zooming.
Gildas 5 년 전
부모
커밋
da6994a142
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      lib/single-file/single-file-core.js

+ 4 - 0
lib/single-file/single-file-core.js

@@ -1377,10 +1377,14 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 			const transformPriority = this.doc.documentElement.style.getPropertyPriority("-sf-transform");
 			const transformOrigin = this.doc.documentElement.style.getPropertyValue("-sf-transform-origin");
 			const transformOriginPriority = this.doc.documentElement.style.getPropertyPriority("-sf-transform-origin");
+			const minHeight = this.doc.documentElement.style.getPropertyValue("-sf-min-height");
+			const minHeightPriority = this.doc.documentElement.style.getPropertyPriority("-sf-min-height");
 			this.doc.documentElement.style.setProperty("transform", transform, transformPriority);
 			this.doc.documentElement.style.setProperty("transform-origin", transformOrigin, transformOriginPriority);
+			this.doc.documentElement.style.setProperty("min-height", minHeight, minHeightPriority);
 			this.doc.documentElement.style.removeProperty("-sf-transform");
 			this.doc.documentElement.style.removeProperty("-sf-transform-origin");
+			this.doc.documentElement.style.removeProperty("-sf-min-height");
 		}
 
 		async insertMAFFMetaData() {