Fixed toolbar position

Calculate the toolbar position inside the view based on the window. Fixed the position for views there are smaller then the root view