You should use "width" instead of "this.map.getCurrentSize().w".