ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

[iOS] [RadListView] First items in the list not showing #1261

Open ghost opened 5 years ago

ghost commented 5 years ago

Please, provide the details below:

Tell us about the problem

First items in the list not showing

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

  1. Create a page with a RadListView inside;
  2. Bind an ObservableArray;
  3. Access the page.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<lv:RadListView id="list-photos" row="0" items="{{ photos }}" itemTap="{{ photo }}" marginRight="-2" backgroundColor="#e6e6e6" visibility="{{ photos.length > 0 ? 'visible' : 'collapse' }}">
  <lv:RadListView.listViewLayout>
    <lv:ListViewStaggeredLayout scrollDirection="Vertical" spanCount="2" />
  </lv:RadListView.listViewLayout>
  <lv:RadListView.itemTemplate>
    <GridLayout rows="*" columns="*" margin="15" borderRadius="10" >
      <Image row="0" src="{{ attachmentPath }}" width="200" height="120" 
      decodeHeight="200" decodeWidth="120" loadMode="async" stretch="aspectFit" />
    </GridLayout>
  </lv:RadListView.itemTemplate>
</lv:RadListView>

For comparison have a look at the version with the radListView (first image) and the listView (second image):

radlistview

listview

rsevil commented 4 years ago

+1