prevent clock from being drawn outside of window