fixed a small issue with the onMeasure method not setting the matrix correctly