boka-human-cliend-v2 0.0.22 → 0.0.23

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": "boka-human-cliend-v2",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "main": "dist/boka-human-v2.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve src/demo/main.js",
@@ -69,8 +69,10 @@ export default {
69
69
  }
70
70
  },
71
71
  mounted() {
72
- this.icon();
73
- this.chatMainInitDrag();
72
+ setTimeout(()=>{
73
+ this.icon();
74
+ this.chatMainInitDrag();
75
+ })
74
76
 
75
77
  window.humanFunction = {
76
78
  showChatView: this.showChat
@@ -139,7 +141,7 @@ export default {
139
141
  icon(){
140
142
  const container = document.body;
141
143
  let defx = container.clientWidth-40;
142
- let defy = container.clientHeight-150;
144
+ let defy = Math.min(screen.availHeight,container.clientHeight)-150;
143
145
  let tmpIcon = document.querySelector('#humanEnterIcon');
144
146
  tmpIcon.style.transform = `translate(${defx}px, ${defy}px)`;
145
147
  tmpIcon.setAttribute('data-x', defx);