Fixed bug with the resize event in ExtJS 5