Resize detail view with window