Resize navigation tree just on page load

Signed-off-by: Michal Čihař <michal@cihar.com>