You will have to hook to javascript for resizing navigation panel to update this.