AQGridView icon indicating copy to clipboard operation
AQGridView copied to clipboard

Last row slightly covered

Open nolanRatu opened this issue 13 years ago • 2 comments

Hi,

When I scroll my grid to view bottom row, it is slightly covered by the iPhone screen. Help with adjusting the scroll, thanks

nolanRatu avatar Nov 11 '12 00:11 nolanRatu

Don’t think this is an issue with the project, confidence level 90%. I suspect you are using translucent bars or setting needsFullscreenLayout to yes. Try looking into these properties. Also try twiddling the frame for the grid view so it does not occupy the whole view, and set clipsToBounds to NO. In any case, also try -[self.view recursiveDescription] or incorporating DCIntrospect to find the root cause.

Please keep us posted if you are able to solve it.

On Nov 10, 2012, at 7:29 PM, nolanRatu [email protected] wrote:

Hi,

When I scroll my grid to view bottom row, it is slightly covered by the iPhone screen. Help with adjusting the scroll, thanks


Reply to this email directly or view it on GitHub: https://github.com/AlanQuatermain/AQGridView/issues/178

evadne avatar Nov 11 '12 00:11 evadne

I just had a similar problem. The content of the cell seems to extend the cell's contentView. Adding some extra pixel to the portraitSize worked. I just still don't understand how this is constructed. Setting it equal to the GridViewCell's frame does not work and the scroll view's contentSize is calculated based on the contentView size of the cells and not on the actual content?

- (CGSize)portraitGridCellSizeForGridView:(AQGridView *)gridView {
    CGSize cellSize = _cellFrame.size;
    cellSize.height += 40;
    return cellSize;
}

sebastianwr avatar Aug 17 '14 13:08 sebastianwr