askbot-dragon 1.5.53-beta → 1.5.54-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.5.53-beta",
3
+ "version": "1.5.54-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -251,7 +251,7 @@ export default {
251
251
  newFileInOssPath = url.substring(0, url.indexOf("?"))
252
252
  }
253
253
  let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
254
- if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'){
254
+ if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
255
255
  this.$refs.previewPdf.fileName = fileName;
256
256
  } else {
257
257
  this.$refs.previewPdf.fileName = '';
@@ -398,7 +398,8 @@ export default {
398
398
  if(this.transformSalce !== null && this.fileName) {
399
399
  this.contentView.style.transform = `scale(${this.transformSalce}, ${this.transformSalce})`
400
400
  if (postionArr.length){
401
- this.contentView.style.left = (postionArr[0] * this.scale * CSS_UNITS * (this.transformSalce) * -1) + 10 + 'px';
401
+ // document.getElementById('pdf_container_view').scrollLeft = (document.getElementById('pdf_container_view').scrollWidth - document.getElementById('pdf_container_view').clientWidth) / 2
402
+ // this.contentView.style.left = (postionArr[0] * this.scale * CSS_UNITS * (this.transformSalce) * -1) + 10 + 'px';
402
403
  }
403
404
  } else {
404
405
  this.contentView.style.transform = `scale(${this.defaultTransform})`;