Skip to:
Content

BuddyPress.org

Changeset 9921


Ignore:
Timestamp:
06/07/2015 10:29:12 AM (9 years ago)
Author:
imath
Message:

Avatar UI: make sure the cropper is using the correct aspect ratio.

Fixes #6479 (trunk)

Props studio625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/js/avatar.js

    r9826 r9921  
    531531
    532532            if ( ! _.isUndefined( this.options.full_h ) && ! _.isUndefined( this.options.full_w ) ) {
    533                 this.options.aspectRatio = this.options.full_h / this.options.full_w;
     533                this.options.aspectRatio = this.options.full_w / this.options.full_h;
    534534            }
    535535
Note: See TracChangeset for help on using the changeset viewer.