@@ -196,9 +196,12 @@ class DashApps(GenericScopeView):
196 category_element = self._get_category_element(category)
196 category_element = self._get_category_element(category)
197 application_cards = category_element.select_many('AbstractButton')
197 application_cards = category_element.select_many('AbstractButton')
199− # sort by y, x
199+ # sort by y, x, filter those out of view
200+ categoryBottom = category_element.globalRect.y \
201+ + category_element.height
200 application_cards = sorted(
202 application_cards = sorted(
201− application_cards,
203+ (card for card in application_cards
204+ if card.globalRect.y < categoryBottom),
202 key=lambda card: (card.globalRect.y, card.globalRect.x))
205 key=lambda card: (card.globalRect.y, card.globalRect.x))
204 result = []
207 result = []