摘要 |
When the device is rotated from a portrait orientation to landscape orientation, or vice versa, the display device rotates the content items within distinct respective content regions of a page template (slots) that each appear to stay in their same position with respect to a frame of reference of the display device. While the content regions stay in their same positions, the content within each content region counter-rotates in place to offset the rotation of the display device. Thus, the content within the content regions maintains an orientation with respect to a constant (non-rotating) frame of reference, regardless of the orientation or rotation of the display device. In one embodiment, a slot's position, height, and width in a template in a second orientation are determined from the slot's position, height, and width in the template in a first orientation.
|