added fit(targetIsHidden) method to prevent onPreDraw to fail when one of the target's parents is hidden