update middle section on off-canvas, fix #5531