properly compute the toolbar width