-
Notifications
You must be signed in to change notification settings - Fork 157
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
The layout is broken -- kind of #41
Comments
Are the indexs not inserting into the right columns? |
Doesn't currently account for height, this would be something that is added as a functionality in #5 |
@brh55 Sometimes it does not insert into the right columns. Sometimes it does. This bug breaks the whole point to Masonry sometimes. |
FlatList will not fix this issue, technically #38 should of fixed this |
@brh55 I am using the sorted option. But still this issue exists. All the screenshots i have posted here use the |
yes my issue is same. sometimes image not showing . if i close page and come back again my image will be show. i using with react navigation |
@brh55 Any progress on this? |
@srameshr Start by removing the scroll view wrapper and flex styles. Probably won't fix the issue, but you shouldn't need that anymore with the latest v0.4.0. |
@srameshr is this happening with a nested view within a navigation component, or does it also happen when it is on it's own. I only ask because I don't see these issues with the updated demo). |
@brh55 Yes it happens with the nested view with react native navigation component. My current app does not have a scrollview wrapper. |
@brh55 This issue still exists regardless of any changes to image size. |
Yeah this is most likely with the rowHasChanged function, can you try to just return true by default. And see if this fixes the issue |
@brh55 No, its not working and there is a big problem. Since most of the time (not always) it renders only one column regardless of what the column size is, Apple is rejecting my build saying that the app is not optimised to take up the full screen. This is the screenshot of the app that they sent. Waiting for this fix, desperately. |
Were you having these issues with v0.3.0 or after the flatlist changes? |
I don't remember! I dug through the code and I was not able to figure out exactly where and how the insert into column logic is written. Could you help me out with that, so that I can try to fix it. |
Insert into column is at Masonry.js LOC 134. as well as assigning a column number at LOC 12. |
@srameshr if you can email me access to your codebase (or a similarly set up codebase with the same issue) it will make it significantly easier for me to narrow down the cause of this issue |
@brh55 Your email? |
@brh55 I dropped you a mail. |
hi guys do we have any temporary fixes for this? im encountering the same issue, the settimeout works sometimes but not always |
@srameshr do u encounter this issue on both android and ios? |
|
Experiencing the same issue with 0.4.7, wrapped in NativeBase 'Content' component. |
@jacktator Are you experiencing uneven layouts? If so the current release of masonry only places them where they are initially assigned prior to resolving dimensions. This feature of best effort equally distributed layouts is available in the branch v0.5.0 but it not all additional planned updates have been finished so I haven't released it yet. Feel free to try and test and provide feedback. |
Here is a screenshot:
Sometimes the columns are a miss
These quirk happen sometimes on navigation. When I navigate to and fro to this page.
In the below image, data is ordered as 5,4,3,2,1. But the list renders them as below.
The text was updated successfully, but these errors were encountered: