Skip to content
Snippets Groups Projects

Revert "Merge branch 'get_setter_canvasSizeInformations' into 'mui5-annotation-on-video-stable'"

Merged Anthony requested to merge revert-4d31282a into mui5-annotation-on-video-stable
Compare and
2 files
+ 1
27
Compare changes
  • Side-by-side
  • Inline

Files

@@ -93,12 +93,6 @@ export class AnnotationsOverlayVideo extends Component {
this.state = {
showProgress: false,
canvasSize : {
canvasHeight:0,
canvasWidth:0,
containerHeight:0,
containerWidth:0,
}
};
}
@@ -500,17 +494,9 @@ export class AnnotationsOverlayVideo extends Component {
/** */
canvasUpdateCallback() {
return () => {
const { windowId } = this.props
this.canvasOverlay.clear();
this.canvasOverlay.resize();
this.canvasOverlay.canvasUpdate(this.renderAnnotations.bind(this));
this.setState({canvasSize: {
canvasHeight:this.canvasOverlay.canvasHeight,
canvasWidth:this.canvasOverlay.canvasWidth,
containerHeight:this.canvasOverlay.containerHeight,
containerWidth:this.canvasOverlay.containerWidth,
}})
VideosReferences.setCanvasSizeInformation(windowId,this);
};
}
Loading