-
Notifications
You must be signed in to change notification settings - Fork 70
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
Error: collection-repeat tried to compute the height of repeated elements #99
Comments
hi @durasj thanks for reporting. regards |
Hi @bianchimro, sorry for late reply. There's simple abstraction around it to appear as a text field with the select button next to it and with translated texts etc. - nothing special. <span class="button-addon">
<input
type="text"
name="{{ ::select.name }}"
ng-model="select.valueHr"
class="modal-select"
ng-required="select.ngRequired"
ng-disabled="select.ngDisabled"
readonly
>
<button
type="button"
ng-model="select.value"
ng-hide="select.ngDisabled"
modal-select
modal-title="{{ ::select.title }}"
options="select.options"
option-property="{{ ::select.keyProperty }}"
on-select="select.pickedValue(newValue)"
has-search="true"
selected-class="activated"
search-properties="[ select.useProperty ]"
search-placeholder="{{ ::select.searchTranslation }}"
cancel-search-button="{{ ::select.clearTranslation }}"
load-list-message="{{ ::select.loadingTranslation }}"
cancel-button="{{ ::select.cancelTranslation }}"
reset-button="{{ ::select.resetTranslation }}"
>
{{ ::select.pickTranslation }}
<div class="option" ng-transclude></div>
</button>
</span> Since the height should be pretty much very predictable and shouldn't change with screen rotation etc. I was thinking it would be maybe good to specify the item-height (54px?). Or, if users can change the appearance and therefore the height, make it rather optional attribute on the plugin? I can submit the PR if wanted. Thanks |
I had a short trouble with this problem, and this trick solved the problem.
Why? Cos if the list has a number of options greater than |
@suisun2015 I actually wanted the Anyway, it seems the author is no longer maintaining this repo. |
There is one error that gets reported once in a while (really only like once a month or few months even though the component is used pretty extensively). Users don't report any issues, but it still gets triggered and sent by the automated system. It's unfortunately impossible for me to reproduce.
Here is the error:
Error: collection-repeat tried to compute the height of repeated elements "option in options track by $index", but was unable to. Please provide the "item-height" attribute. http://ionicframework.com/docs/api/directive/collectionRepeat/
I know this is very tricky, but maybe you would have some idea why this could happen. I think it could be some very low probability race condition.
Ionic version: 1.3.3
The text was updated successfully, but these errors were encountered: