Added calculating the buttonWrapperWidth to deal more easily with localizations