Modify setMeasuredDimension change to super.onMeasure for ResizableView and ResizableButton