Skip to content

Image #1319

Open
Open
Image#1319
@DarrinRobertson

Description

@DarrinRobertson

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions