In case user switches between two render trees from A to B there is a possiblity that A tree won't display corrent image. It happens every time user changes window size when using B render tree - in such case A render tree doesn't get informed about change and when swtiching back to A the image is scaled.
What is the best way to update custom renderTree so it takes into account changes in window size?