googlearchive / core-list

Polymer virtualized list element
25 stars 20 forks source link

core-list didnt update properly :: core-list must either be sized or be inside an overflow:auto div that is sized #63

Open andrescabana86 opened 9 years ago

andrescabana86 commented 9 years ago

this html code

<core-list id='list-of-items' fit>
    <template>
        <div class='core-list-item'>
            <h1>{{model.name}}</h1>
            <p>{{model.quant}}</p>
        </div>
    </template>
</core-list>

at first time the list loads correctly but when i click on "load other list" button--->

$(selfForm).ajaxSubmit(
    {
        success: function (response){ //json response
            $scope.listOfItems = angular.fromJson(response);
            document.querySelector('#list-of-items').data = $scope.listOfItems;
        }
    });

i get this error: core-list must either be sized or be inside an overflow:auto div that is sized

if i reload the entire page with F5 the second list loads correctly