askbot-dragon 1.8.21-beta → 1.8.22-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.8.21-beta",
3
+ "version": "1.8.22-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -147,7 +147,7 @@ function newInitWaterMark(elId, textValue) {
147
147
 
148
148
  //获取页面最大高度
149
149
  var page_height = document.getElementById(elId).scrollHeight;
150
- console.log('page_height',page_height, page_width,document.getElementById('docView').clientHeight);
150
+ console.log('page_height',page_height, page_width);
151
151
 
152
152
  // var page_height = Math.max(document.body.scrollHeight, document.body.clientHeight);
153
153
 
@@ -240,11 +240,7 @@ function newInitWaterMark(elId, textValue) {
240
240
 
241
241
  mask_div.style.width = defaultSettings.watermark_width + "px";
242
242
 
243
- if (elId === 'docHtml'){
244
- mask_div.style.height = document.getElementById('docView').clientHeight + "px";
245
- } else {
246
- mask_div.style.height = defaultSettings.watermark_width + "px";
247
- }
243
+ mask_div.style.height = defaultSettings.watermark_width + "px";
248
244
 
249
245
  mask_div.style.display = "block";
250
246