askbot-dragon 1.8.18-beta → 1.8.20-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 -2
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,document.getElementById('
|
|
150
|
+
console.log('page_height',page_height, page_width,document.getElementById('docView').scrollHeight);
|
|
151
151
|
|
|
152
152
|
// var page_height = Math.max(document.body.scrollHeight, document.body.clientHeight);
|
|
153
153
|
|
|
@@ -241,7 +241,7 @@ function newInitWaterMark(elId, textValue) {
|
|
|
241
241
|
mask_div.style.width = defaultSettings.watermark_width + "px";
|
|
242
242
|
|
|
243
243
|
if (elId === 'docHtml'){
|
|
244
|
-
mask_div.style.height = document.getElementById('
|
|
244
|
+
mask_div.style.height = document.getElementById('docView').scrollHeight + "px";
|
|
245
245
|
} else {
|
|
246
246
|
mask_div.style.height = defaultSettings.watermark_width + "px";
|
|
247
247
|
}
|