fixing issue in which showing the legend from the print modal (without having already shown the legend since loading the app), produced an empty legend.  ensuring updateScrollBars is called when showLegend is changed corrects this problem.