소스 검색

Merge pull request #334 from NullXin/wzxdev

ppt显示问题
gitchenjh 3 년 전
부모
커밋
051ad0f4ea
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      server/src/main/resources/static/pptx/ppt.js
  2. 1 1
      server/src/main/resources/web/ppt.ftl

+ 1 - 0
server/src/main/resources/static/pptx/ppt.js

@@ -154,6 +154,7 @@ function resetContent() {
 	var thumbnailWidth = $('.thumbnail:first').width();
 	var thumbnailHeight = thumbnailWidth * ratio;
 	$('.thumbnail').height(thumbnailHeight);
+	$('.thumbnail>img').width(thumbnailWidth).height(thumbnailHeight);
 
 	var slideImgContainerWidth = $('.slide-img-container:first').width();
 	var slideImgContainerHeight = slideImgContainerWidth * ratio;

+ 1 - 1
server/src/main/resources/web/ppt.ftl

@@ -2,7 +2,7 @@
 {
 	"code": 1,
 	"name": "PPT预览",
-	"totalSize": 0,
+	"totalSize": ${imgurls?size},
 	"curPage": 1,
 	"totalPage": 1,
 	"pageSize": 10,