Is there any way to set parent container\'s height based on height of what is drawn in the child canvas?
I am using a custom painter like this:
double