Update scalebar on resize event too.