Adjusting view positions after deleting measures

Added view adjusting after deleting measures. Sometimes the view remained over a gray area, if a page has been removed. This moves the view to a measure right before the deleted ones.