adobe/brackets — pull request #1357 by redmunds (2012-08-09 21:32:15+00:00)
Title: fix getItemsPerPage()

Don't cache itemsPerPage, because user can press PageUp/Down key when list is not full height.

This pull request fixes the following problem:

1. Start Brackets
2. Type in a page to invoke the code hints window
3. Filter in such as way that there are less than 8 items in list
4. Press up PageUp or PageDown
Important: this has to be the *first* time PageUp or Page down is pressed in code hints list
5. Now invoke code hints with full list
6. Press up PageUp or PageDown again

Notice that it only advances the height as when first pressed, not 8.