emacroh5lib 1.0.12 → 1.0.13
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
@@ -208,16 +208,6 @@ export default {
|
|
208
208
|
this.parentWidth = this.parentW ? this.parentW : this.parentElement.clientWidth;
|
209
209
|
this.parentHeight = this.parentH ? this.parentH : this.parentElement.clientHeight;
|
210
210
|
|
211
|
-
if (this.name.trim() !== '' && this.isStorage) {
|
212
|
-
let info = JSON.parse(localStorage.getItem("DragResizeView_Info_" + this.name))
|
213
|
-
if (info !== null) {
|
214
|
-
this.x = info.left
|
215
|
-
this.y = info.top
|
216
|
-
this.w = info.width
|
217
|
-
this.h = info.height
|
218
|
-
}
|
219
|
-
}
|
220
|
-
|
221
211
|
this.left = this.x;
|
222
212
|
this.top = this.y;
|
223
213
|
this.right = this.parentWidth - (this.w === 'auto' ? this.$refs.container.scrollWidth : this.w) - this.left;
|
@@ -247,6 +237,16 @@ export default {
|
|
247
237
|
cancelHandle.setAttribute('data-drag-cancel', this._uid);
|
248
238
|
});
|
249
239
|
}
|
240
|
+
|
241
|
+
if (this.name.trim() !== '' && this.isStorage) {
|
242
|
+
let info = JSON.parse(localStorage.getItem("DragResizeView_Info_" + this.name))
|
243
|
+
if (info !== null) {
|
244
|
+
this.left = info.left
|
245
|
+
this.top = info.top
|
246
|
+
this.width = info.width
|
247
|
+
this.height = info.height
|
248
|
+
}
|
249
|
+
}
|
250
250
|
},
|
251
251
|
|
252
252
|
beforeDestroy() {
|