Changed the way of spinnerHeight is created