~fboucault/address-book-app/discard_edit_confirmation

« back to all changes in this revision

Viewing changes to src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailAvatarEditor.qml

  • Committer: Florian Boucault
  • Date: 2015-09-23 13:00:50 UTC
  • Revision ID: florian.boucault@canonical.com-20150923130050-9f0iei0z5wwcfqev
Fixed wrong aspect ratio when using UbuntuShape.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        radius: "medium"
74
74
        anchors.fill: parent
75
75
        source: avatarImage.source != defaultAvatar ? avatarImage : null
 
76
        sourceFillMode: UbuntuShape.PreserveAspectCrop
76
77
 
77
78
        Image {
78
79
            id: avatarImage
79
80
            objectName: "avatarImage"
80
81
 
81
 
            fillMode: Image.PreserveAspectCrop
82
82
            asynchronous: true
83
83
            source: root.getAvatar(root.detail)
84
84
            anchors.centerIn: visible ? avatar : undefined