Moved the call to super.onMeasure to the bottom of the onMeasureMethod.