Closed scottybrown closed 9 years ago
@scottybrown I see. You're right for this line. Working on that
@scottybrown PR opened : https://github.com/andrefarzat/ng-jcrop/pull/39 Can I ask you to run the demo and see if it was solved for you ? Thanks
Yeah no problem. I ran the demo and it all seems good. The 3 demos seem to work and definitely aren't using shade mode. I did get a couple of test failures, not sure if that's something on my end or not.
Nice catch. Haven't played the tests against chrome/firefox. Fixed :smile_cat:
Can I get your ok ?
It seems to be working Chrome, but still makes the first failures on Firefox 42 ("ng-jcrop JcropController getShrinkRatio should return the correct Shrink Ratio")
I am making travis-ci to run Firefox in xvfb. All green in travis-ci https://travis-ci.org/andrefarzat/ng-jcrop :dancer:
Oh it does seem to be working now in Firefox. Strange. Must have been something on my end.
For the record this is just me running it locally, with no launchers configured, manually traveling to http://localhost:9876/ in Firefox 42.0.0. All good :+1:
Version 2.1.1
published :smiley_cat:
JCrop has a shade mode whereby the grey area surrounding the crop selection box is made up of 4 grey squares, rather than a second image with opacity set to appear grey. This can be seen in the JCrop Github tutorial 4 as an experimental feature.
ng-jcrop seems to be using shade mode accidentally. It calls jQuery.Jcrop($scope.mainImg, config), but I think it should be passing in $scope.mainImg[0] which has a tagName set to IMG rather than undefined.
Shade mode seems to work okay so the impact is probably negligible for most users. The impact for us is that we're trying to modify the crop selection to be circular instead of square. This is much more difficult in shade mode.