Changing the visibilty bar when the end point is out side the total frame length.

Is there a way to get hold of the end of the visibility bar/rectangle in the timeline when it is "longer" than the timeline max frame number?resize_visibility