Fixed Pivot painting artifact where black lines were painted all over
due to invalid clipsizes being passed to the CustomFrame border painted
method.