First of all, it gives a syntax error, I had to change to

if (Ext.browser.name == 'ChromeiOS') { this.setHeight('-webkit-calc(100% - ' + ((window.outerHeight - window.innerHeight) / 2)...