Calculate width of toolbarPanel correct