Hide sidebar & get viewport before set view