21. A non-transitory computer readable storage medium having stored therein instructions, which when executed by a device with a touch screen display, cause the device to: display an electronic document at a first magnification on the touch screen display; detect a gesture on the touch screen display corresponding to a command to zoom out by a user-specified amount; display the electronic document at a magnification less than the first magnification on the touch screen display, in response to detecting the gesture; display the electronic document at a magnification wherein areas beyond opposite edges of the electronic document are displayed on the touch screen display, if a document length or a document width is entirely displayed while the gesture is still detected on the touch screen display; and in response to detecting termination of the gesture, display the electronic document at a magnification wherein the areas beyond opposite edges of the electronic document are no longer displayed on the touch screen display.
21. A non-transitory computer readable storage medium having stored therein instructions, which when executed by a device with a touch screen display, cause the device to: display an electronic document at a first magnification on the touch screen display; detect a gesture on the touch screen display corresponding to a command to zoom out by a user-specified amount; display the electronic document at a magnification less than the first magnification on the touch screen display, in response to detecting the gesture; display the electronic document at a magnification wherein areas beyond opposite edges of the electronic document are displayed on the touch screen display, if a document length or a document width is entirely displayed while the gesture is still detected on the touch screen display; and in response to detecting termination of the gesture, display the electronic document at a magnification wherein the areas beyond opposite edges of the electronic document are no longer displayed on the touch screen display. 26. The computer readable storage medium of claim 21 , wherein the areas beyond opposite edges of the electronic document include an area beyond a top edge of the document, an area beyond a bottom edge of the document, an area beyond a right edge of the document, and an area beyond a left edge of the document.