Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UICollectionViewFlowLayout - Behavior not defined #40

Open
JCalabretta-MaxetaTech opened this issue Feb 15, 2017 · 1 comment
Open

UICollectionViewFlowLayout - Behavior not defined #40

JCalabretta-MaxetaTech opened this issue Feb 15, 2017 · 1 comment

Comments

@JCalabretta-MaxetaTech
Copy link

Hi,

I am seeing this when the device is in landscape or portrait

The behavior of the UICollectionViewFlowLayout is not defined because:
the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.
The relevant UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x101544c00>, and it is attached to <UXMPDFKit.PDFSinglePageViewer: 0x10208d000; baseClass = UICollectionView; frame = (0 0; 1024 704); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x170054550>; layer = <CALayer: 0x17002d5a0>; contentOffset: {0, 0}; contentSize: {2048, 768}> collection view layout: <UICollectionViewFlowLayout: 0x101544c00>.
Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

Just wondering what could possibly be causing this?

@pushchris
Copy link
Contributor

This is a known bug in the way the document is drawn in the window relative to the other bars. It does not cause any major issues, just occasionally causes the document to not 100% fill up the available space. There have been a number of pull requests in the past that tried to solve the problem, but it is still around. It is on the list of things to tackle for this framework, but not super high at the moment. If you want to take a stab at it, you are most welcome to, pull requests are always appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants