Skip to:
Content

BuddyPress.org

Changeset 9920


Ignore:
Timestamp:
06/07/2015 10:25:41 AM (10 years ago)
Author:
imath
Message:

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

See #6479 (branch 2.3)

Props studio625

File:
1 edited

Legend:

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

    r9826 r9920  
    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.