The optimization to only add grid view items to the layout that are actually in view relied on View2D information on scrolling. Popups don't use View2D, so with this change the optimization will be skipped when View2D is not used. Necessary for the brush assets project which adds a popup version of the asset shelf, see #116337.