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

Image #1319

Open DarrinRobertson opened 4 years ago

DarrinRobertson commented 4 years ago

When placing a Image inside a GridLayout inside of the RadListView template the stretch="aspectFill" proprty does not work and acts like a aspectFit.

Occurs on Android (unable to test on iOS at present) nativescript-ui-listview: "^8.0.1" CLI: 6.2.0 tns-core-modules: 6.2.1 tns-android: 6.2.1

Create a ListView with a GridLayout with multiple columns. Add a image element and have it stretch across mulitple columns using aspectFill.

<lv:RadListView.itemTemplate>
  GridLayout rows="auto, *, auto" columns="auto, *, auto">
    Image row="0" col="0" colSpan="3" src="res://mainpagebackground" stretch="aspectFill" />
    .....
  /GridLayout>
</lv:RadListView.itemTemplate>

There was no issue when on CLI 6.0.1 - It was working as expected with the image filling across all columns. This has only appeared after upgrading to 6.2.0

NickIliev commented 4 years ago

@DarrinRobertson I've tested your case and the aspect fill is working on my side (here is the test project). Note a few things:

DarrinRobertson commented 4 years ago

@NickIliev Thanks very much for taking the time to look at this. I will look into styles.