-
Notifications
You must be signed in to change notification settings - Fork 550
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
"negative or zero item sizes are not supported in the flow layout" in simulator #146
Comments
And some autolayout warnings:
|
Hi @tomoyuki28jp, may I know the Xcode version, simulator OS version and the simulator device model? |
Thanks for your reply, @chiunam XcodeVersion 6.4 (6E35b) iOS SimulatorVersion 8.4 (SimulatorApp-565.9 CoreSimulator-117.15) |
When I re-try to select images on the same simulator again, it works fine now somehow. Wired. I close this issue for now. Sorry to bother you and thanks for your great work! |
I have just experienced the same issue. Runnning XCode 7, iOS9, this module bridged into a swift project, using Iphone 6S plus simulator. Exactly the same error message. No autolayout warnings, though. Next time I tried running the simulator, the problem did not appear. So I would say that the issue is transient, but not fixed :-( ... maybe the module writes some settings that it misses the first time around? ... nice work with this module, though! |
@joachimboggild Thanks for reporting. Let's keep this issue in view. |
Hi! That issue happens when the app does not have permission to access the photo library yet. You can reproduce it on simulator resetting its contents ("reset content and settings ...") and running your app again. |
Yeah, it seems like what @barba77 said is correct. |
How to reproduce this error
|
Still no luck for me. Have it googled and found some related questions in SO. It should be raised from the collection view layout object. Probably it cannot calculate the item size from content size of the view controller in certain scenarios. I recalled that the UICollectionViewController occasionally return improper bounds size when I developed this picker. That might be due to different sequence of initiating views and view controllers. I'll try to create an experimental branch and add a checking of negative or zero item sizes. If it occurs, it will return a predefined item sizes. It should eliminate the error but the grid size will be different. |
"negative or zero item sizes are not supported in the flow layout" in simulator"
fixed issue #146 and controller containment
@tomoyuki28jp @joachimboggild @barba77, I have merged the fix from @kirillivonin in v3.3.1. Please report if this issue reappears again. |
@chiunam Thank you for your work! :) |
My iPhone simulator (iPhone6 / iOS8.4) has 10 images in the Camera Roll album. But when I try to select album in the simulator, I get this error: "negative or zero item sizes are not supported in the flow layout". And I cannot select any image.
The text was updated successfully, but these errors were encountered: