onMeasure should now handle measure specs correctly.