Selecting File->Document Properties will open up the Document Properties panel for the diagram you are in. By default, the Width and Height of the staging area are set to 5000 × 5000 pixels and is the maximum size for a diagram. You can set the limits for your diagram size here.

You can also choose to export the border of your diagram and set your background color here.