@widgetic/editor 3.10.50 → 3.10.52

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": "@widgetic/editor",
3
- "version": "3.10.50",
3
+ "version": "3.10.52",
4
4
  "scripts": {
5
5
  "start": "webpack --config webpack.config.js --watch --progress",
6
6
  "build": "webpack --config webpack.config.js",
@@ -10,7 +10,7 @@
10
10
  "postversion": "git push && npm publish",
11
11
  "genssl": "openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout key.pem -out cert.pem -subj /CN=localhost",
12
12
  "server": "http-server -S -p 8083",
13
- "deploy": "cd ./lib && rsync * root@zeus.widgetic.com:/opt/widgetic_editor/lib"
13
+ "deploy": "cd ./lib && rsync -ruL * root@zeus.widgetic.com:/opt/widgetic_editor/lib"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@widgetic/spine": "^2.0.3",
@@ -220,6 +220,9 @@ export default {
220
220
 
221
221
  // load uploaded files
222
222
  this.refresh();
223
+
224
+ // scroll to uploads files list to bottom
225
+ this.scrollToListBottom();
223
226
  },
224
227
  ondestroy() {
225
228
  this.observer.cancel();
@@ -247,7 +250,12 @@ export default {
247
250
 
248
251
  activate() {
249
252
  if (!this.refs.scrollPane) return;
253
+
254
+ // update the scroll pane
250
255
  this.refs.scrollPane.update();
256
+
257
+ // scroll to the bottom
258
+ this.scrollToListBottom();
251
259
  },
252
260
 
253
261
  refresh(ev) {
@@ -360,6 +368,14 @@ export default {
360
368
 
361
369
  _onDropZoneNewUpload(event) {
362
370
  // console.log("on DropZone New Upload:", event);
371
+
372
+ // scroll the list to the bottom
373
+ this.scrollToListBottom();
374
+ },
375
+
376
+ // scroll to uploads files list to bottom
377
+ scrollToListBottom() {
378
+ // console.log("on DropZone New Upload:", event);
363
379
  this.refs.scrollPane && this.refs.scrollPane.scrollBottom();
364
380
  },
365
381