Automatically
When you open a new combination of tracks for editing, the number of bars across the page is determined by the “Default Number of Bars per Staff” setting in the Preferences dialog (Scores–Editing page).
In the Auto Layout dialog, you can set the maximum number of bars across the staff.