react_hsbc_teller 1.8.0 → 1.8.1
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +7 -4
package/package.json
CHANGED
|
@@ -2378,13 +2378,16 @@ class Video extends Component {
|
|
|
2378
2378
|
var box=document.getElementById("whiteboardDIV");
|
|
2379
2379
|
var box1 = document.getElementById("operate")
|
|
2380
2380
|
var height = box1 ? box1.offsetHeight : 40
|
|
2381
|
+
var width = this.state.whiteboardHeight * document.getElementById("video20").videoWidth / document.getElementById("video20").videoHeight
|
|
2381
2382
|
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2382
2383
|
this.setState({
|
|
2384
|
+
widthVideo: width,
|
|
2383
2385
|
whiteboardTop: box.getBoundingClientRect().top - height,
|
|
2384
2386
|
whiteboardLeft: box.getBoundingClientRect().left,
|
|
2385
|
-
leftVideo: (box.offsetWidth -
|
|
2387
|
+
leftVideo: (box.offsetWidth - width)/2 + box.getBoundingClientRect().left
|
|
2386
2388
|
})
|
|
2387
|
-
console.log('
|
|
2389
|
+
console.log('whiteboardVideo20',this.state.whiteboardTop,this.state.whiteboardLeft,this.state.widthVideo,this.state.leftVideo)
|
|
2390
|
+
|
|
2388
2391
|
}
|
|
2389
2392
|
}
|
|
2390
2393
|
};
|
|
@@ -3781,7 +3784,7 @@ userType:'1'
|
|
|
3781
3784
|
}
|
|
3782
3785
|
}
|
|
3783
3786
|
componentWillMount() {
|
|
3784
|
-
console.log('hsbc_teller_sdk', '1.8.
|
|
3787
|
+
console.log('hsbc_teller_sdk', '1.8.1')
|
|
3785
3788
|
if (this.props.sessionId) {
|
|
3786
3789
|
this.getRoomStatus({
|
|
3787
3790
|
sessionId: this.props.sessionId
|
|
@@ -5243,7 +5246,7 @@ userType:'1'
|
|
|
5243
5246
|
id="video20"
|
|
5244
5247
|
autoPlay
|
|
5245
5248
|
muted={true}
|
|
5246
|
-
style={{ height: this.state.whiteboardHeight + 'px'
|
|
5249
|
+
style={{ height: this.state.whiteboardHeight + 'px'}}
|
|
5247
5250
|
className="videoTab"
|
|
5248
5251
|
disablePictureInPicture
|
|
5249
5252
|
/>
|