Patent ID: 8381125

Claim:
A method, comprising: at a computing device with a display and one or more user input devices adapted to detect user gestures: displaying on the display a user interface including at least one user interface element, wherein: the user interface element is configured to be resized within the user interface in response to user gestures detected with the one or more user input devices, the user interface element has an aspect ratio, and the user interface element is displayed on the display in conjunction with a plurality of gridlines, which include a plurality of x-axis gridlines and a plurality of y-axis gridlines; detecting a user gesture performed with one or more of the one or more user input devices, the user gesture corresponding to a gesture to resize the user interface element; in response to detecting the user gesture, resizing the user interface element in accordance with the detected user gesture, wherein the detected user gesture has a directional path that intersects at least some of the plurality of gridlines; while resizing the user interface element in accordance with the detected user gesture, maintaining the aspect ratio of the user interface element, wherein maintaining the aspect ratio of the user interface element includes: when the directional path intersects more x-axis gridlines than y-axis gridlines, snapping a perimeter of the user interface element to respective x-axis gridlines when a respective distance between the perimeter of the user interface element and a respective x-axis gridline is less than a predefined distance threshold, and, when the directional path intersects more y-axis gridlines than x-axis gridlines, snapping a perimeter of the user interface element to respective y-axis gridlines when a respective distance between the perimeter of the user interface element and a respective y-axis gridline is less than the predefined distance threshold.