Skip to:
Content

BuddyPress.org

Changeset 9606


Ignore:
Timestamp:
03/09/2015 03:39:40 PM (10 years ago)
Author:
boonebgorges
Message:

Let jCrop set initial crop coordinates on its own.

Our calculation was skewing picture dimensions, and is unnecessary.

Props WeddyWood.
Fixes #6282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r9602 r9606  
    194194                setSelect: [ <?php echo (int) $crop_left; ?>, <?php echo (int) $crop_top; ?>, <?php echo (int) $crop_right; ?>, <?php echo (int) $crop_bottom; ?> ]
    195195            });
    196             updateCoords({x: <?php echo (int) $crop_left; ?>, y: <?php echo (int) $crop_top; ?>, w: <?php echo (int) $crop_right; ?>, h: <?php echo (int) $crop_bottom; ?>});
    197196        });
    198197
Note: See TracChangeset for help on using the changeset viewer.