Claims
- 1. A computer-implemented method for block scaling data to fit a screen on a mobile device, the method comprising:
grouping elements of the data into a first block and a second block, wherein the second block is a sub-block of the first block; determining a width for the first block and a width for the second block; comparing the width of the first block to the width of the second block; increasing the width of the first block when the width of the second block is greater than the width of the first block; and scaling the data associated with the first block and the second block according to their respective widths to display data on the screen such that horizontal scrolling is minimized.
- 2. The computer-implemented method of claim 1, wherein grouping elements of the data into blocks further comprises evaluating the page of data according to a standard that define the data of the page that is block level data.
- 3. The computer-implemented method of claim 2, wherein the standard corresponds to one of the group comprising HTML, XHTML, and CSS.
- 4. The computer-implemented method of claim 1, wherein the first block is the top-level block for the page of data.
- 5. The computer-implemented method of claim 1, wherein the width of the second block corresponds to one of a group comprising a longest unbreakable word associated with the second block, a widest image associated with the second block, and a widest form field associated with the second block.
- 6. The computer-implemented method of claim 1, wherein the width of the first block corresponds to one of a group comprising a longest unbreakable word associated with the first block, a widest image associated with the first block, a widest form field associated with the first block, and the width associated with the second block.
- 7. The computer-implemented method of claim 1, further comprising determining whether the second block includes a resizing element, wherein a width associated with the resizing element is wider than the width of the screen on the mobile device.
- 8. The computer-implemented method of claim 7, further comprising increasing the width associated with the second block to match the width of the resizing element when the resizing element is present in the second block.
- 9. The computer-implemented method of claim 7, further comprising setting the width a first block to match the width corresponding to the screen on the mobile device when a resizing element is not present in the second block.
- 10. A mobile device, comprising:
a processor; a display; a memory into which a plurality of computer-executable instructions are loaded, the computer-executable instructions performing a method comprising:
grouping elements of a page of data into a first block and a second block; comparing a width associated with the first block to a width associated with the second block; increasing the width of the first block when the width of the second block is greater than the width of the first block; and scaling the data associated with the first block and the second block according to their respective widths to display data on the screen such that horizontal scrolling is minimized.
- 11. The mobile device of claim 10, the computer-executable instructions further comprising determining a minimum width for the second block, wherein the minimum width corresponds to one of a group comprising a longest unbreakable word associated with the second block, a widest image associated with the second block, and a widest form field associated with the second block.
- 12. The mobile device of claim 10, the computer-executable instructions further comprising determining whether the second block includes a resizing element, wherein a width associated with the resizing element is wider than the width of the screen on the mobile device.
- 13. The mobile device of claim 12, the computer-executable instructions further comprising increasing the width associated with the second block to match the width of the resizing element when the resizing element is present in the second block.
- 14. The mobile device of claim 12, the computer-executable instructions further comprising setting the width a first block to match the width corresponding to the screen on the mobile device when a resizing element is not present in the second block.
- 15. A computer-readable medium encoded with computer-executable instructions for performing a method comprising:
grouping elements of a page of data into a first block and a second block; setting a width of the first block to match a width corresponding to the screen on the mobile device; comparing the width associated with the first block to a width associated with the second block; increasing the width of the first block when the width of the second block is greater than the width of the first block; and scaling the elements associated with the first block and the second block according to their respective widths to display the page of data on the screen such that horizontal scrolling is minimized.
- 16. The computer-readable medium of claim 15, wherein the second block is a sub-block of the first block, and the first block is a parent block of the second block.
- 17. The computer-readable medium of claim 15, wherein the first block is the top-level block for the page of data.
- 18. The computer-implemented method of claim 15, further comprising determining a minimum width for the second block, wherein the minimum width corresponds to one of a group comprising a longest unbreakable word associated with the second block, a widest image associated with the second block, and a widest form field associated with the second block.
- 19. The computer-implemented method of claim 15, further comprising determining whether the second block includes a resizing element, wherein a width associated with the resizing element is wider than the width of the screen on the mobile device.
- 20. The computer-implemented method of claim 19, further comprising increasing the width associated with the second block to match the width of the resizing element when the resizing element is present in the second block.
- 21. The computer-implemented method of claim 19, further comprising setting the width a first block to match the width corresponding to the screen on the mobile device when a resizing element is not present in the second block.
- 22. The computer-implemented method of claim 15, further comprising setting a width of non-block elements within the first block to correspond to the width of the screen when the width of the first block is greater than the width of the screen.
RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Application No. 60/420,477 filed on Oct. 21, 2002, which is hereby claimed under 35 U.S.C. §119(e).
Provisional Applications (1)
|
Number |
Date |
Country |
|
60420477 |
Oct 2002 |
US |