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 +1 -1
- package/src/assets/js/common.js +2 -6
package/package.json
CHANGED
package/src/assets/js/common.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
|