Added variable declaration to spinnerHeight