core: Fix sidebar display bug

When there is so much items to display, these items tread over main
window footer.