摘要 |
A method of displaying a series of items in an application window on a display device, the method comprising the steps of rendering a subset of the series of items in the application window, calculating the vertical size of each rendered item, calculating the vertical size of the minimal rendered item, calculating the difference of the application window height minus the vertical size of the element containing all rendered items, determining candidate items for addition to the subset if the difference is positive, or determining candidate items for removal from the subset if the difference is negative, iterating through the candidate items, rendering a new subset of the series of items in the application window by adding or removing the iterated candidate items, and repeating steps of the process until the maximum number of items that can be displayed is displayed. |