@polesye No need for the two bindings on onResize:

'caption:resize': this.onResize,
…
'fullscreen': this.onResize