-
Notifications
You must be signed in to change notification settings - Fork 229
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
size mismatch #202
Comments
I have the same problem with you! |
You cant get rid of size mismatch, because if you set fixed size for your vs-repeat, you always have this warning, and if you don't set it, You don't have any scroll ( because the size of vs-repeat should not be same as sum of all elements height ) Any suggestion? EditWhoops! i've upgraded to 2.0.9 and there is no problem any more, My markup: <div class="overview vs-repeat-custom-scroll" vs-repeat> <!-- style="height: calc(100%); overflow: auto;" -->
<div ng-repeat="group in groups | groupsList:groupsFilter:searchGroup" ng-class="{conv_selected: group.active}" ng-click="selectGroup(group)">
<!-- ... -->
</div>
</div> |
I've experienced this issue on v1.1.11 as well as v2.0.9. I tried setting |
I am using v2.0.9 now, but this problem always not fixed yet! |
My problems is when i apply a filter to my ng-repeat, and the height of my items goes lower than vs-repeat height, i always have |
I also get this issue, and when using the latch option, it's complaining about the wrong size as well, als the size should be a lot smaller |
@tje3d But it will cause the performance problem if the warning log always repeat ... |
@XueDong369 please check my pull request #206 |
I had this same issue. Fixed it by inspecting every element in row and taking into account margins. Also had an inner element whose margin expanded pass the parent container causing the calculated size to be off. |
also, hiding the warning is just a mask...the underlying issue of the size being off will still end up in performance issues. |
Hi, I get the same warning message and, what it is more relevant for IE11 (I'm forced to support it) the items are not rendered if I drag the scroll to the bottom. This only happens if I don't configure the item size, if I fix the item size, everything works but the performance gets worse, I experiment some glitches when I drag the scroll |
Any news? |
Same here. Getting this on list of md-cards (angularjs material). Was hoping for an easier solution to md-virtual-repeat. |
I was able to work around the warning spam by removing the margin from my list elements. I think it was due to the fact that child margin doesn't affect parent height (https://stackoverflow.com/q/27829250/3038518). Perhaps a future fix for this bug would involve that information somehow. |
Love 3 year old issues |
My previous comment (since deleted) was a false positive, but I am able to hide the warnings with the below snippet. I'm not well versed in AngularJS but piecing together some knowledge I was able to override (set?)
|
I am having an issue since I upgraded from version 1.x to the latest. I have a list of elements all the same size within a ul that has a height of calc(100% - 31px). vs-repeat appears to be working, but I get that size mismatch error in the console, and many more are logged when I scroll. I tried adjusting the size option like so 'vs-repeat="{size: ...}"' to try and match the expected size, but I can only get as close as .000000001... to it no matter how much I try.
Was this an issue in the earlier version that just wasn't logged? What should I do to correct this, or is there at least a way of turning the logging off?
The text was updated successfully, but these errors were encountered: