fix footnote scroll height bug when hiding sidebar