Make sure segments stay within the control's bounds, if clipsToBounds is set, and set clipsToBounds by default.