Closed (cannot reproduce)
Project:
Manual Crop
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Apr 2014 at 16:07 UTC
Updated:
9 Dec 2019 at 19:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dsnopekAttached is a patch that will cause the style settings to only be placed on the page once.
Please let me know what you think!
Comment #2
matthijsWeird, I don't seem to have that problem... The patch looks okay, but I think it will fail if the first form is build but not rendered (if #access is set to FALSE)?
Comment #3
dsnopekIt might also be related to AJAX.. It happens on the Spotlight widget in Panoply, where there are several upload elements placed on a single form and the user can click an "Add more" AJAX button.
I'm not sure if
#attachedwon't get used if an element has #access set to FALSE! I'll need to test that..Comment #4
matthijsI would be very thankful if you could investigate this some more :-)
Comment #5
dsnopekYep, that's my plan! I'm going to do some testing to see if it's AJAX-related and if
#access => FALSEwill remove the Javascript. I'll let you know when I do. :-)Comment #6
cthshabel commentedI am experiencing a problem related to this I believe. I have two crop tools on the same page. Neither of them save the new crop and the proportions are messed up in the preview too.
Comment #7
dsnopekAdded related issue #2255095: Add "Crop" tool to Spotlight widget, since it's that patch to Panopoly that needs the patch here to work. Unfortunately, I haven't had any time to work on this since that functionality was pulled out.
Comment #8
candelas commentedHello
I am using Panopoly. I have a content type that has an image that in its style uses Manual Crop: Crop and scale with Respect minimum dimensions. When I add a new image, I can make a selection of any size, even 1x1px. When I edit an image that was previously cropped, then it works perfect.
I checked and the Drupal.settings.manualcrop.styles is empty when the image is new. I dig until I arrived to this patch. If I revert it, everything works.
Sorry that I have not enough knowledge to give a solution. Thanks
Comment #9
dsnopekComing back to this after a few years. :-) I've been testing #2255095: Add "Crop" tool to Spotlight widget and can't reproduce the issue this patch was meant to fix anymore, so I'm going to just close this.