basic test to check whether the toolbar is going outside the viewport or not, not quite finished but not sure how to do any more