Ticket #1054: avatar-cropper-preview-size-fix.patch
File avatar-cropper-preview-size-fix.patch, 582 bytes (added by , 15 years ago) |
---|
-
bp-core-cssjs.php
121 121 122 122 function showPreview(coords) { 123 123 if ( parseInt(coords.w) > 0 ) { 124 var rx = 100/ coords.w;125 var ry = 100/ coords.h;124 var rx = <?php echo constant( 'BP_AVATAR_FULL_WIDTH' ) ?> / coords.w; 125 var ry = <?php echo constant( 'BP_AVATAR_FULL_HEIGHT' ) ?> / coords.h; 126 126 127 127 jQuery('#avatar-crop-preview').css({ 128 128 width: Math.round(rx * <?php echo $image[0] ?>) + 'px',