Fixed overflow issue for TOC and weird editor size