Skip to content

RC4 ion-thumbnail img Images width and height set explicitly #9675

@cbetz

Description

@cbetz

Ionic version: (check one with "x")
[ ] 1.x
[x ] 2.x

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
With the upgrade to RC4 I'm seeing the height and width explicitly set for img inside ion-thumbnail. Looks like it was changed here: a1542ab

Appears $item-wp-thumbnail-size is setting the height/width now instead of the max-height/max-width. Just curious why the default changed.

Expected behavior:
In previous versions (up to and including RC3) images were resized to fit in ion-thumbnail.

Steps to reproduce:

Related code:

<ion-list text-wrap>
        <ion-list-header>
            Header
        </ion-list-header>
        <ion-item tappable>
            <ion-thumbnail item-left>
                <img src="">
            </ion-thumbnail>
            <h2>Name</h2>
            <p>More text</p>
        </ion-item>
    </ion-list>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions