Fails when inside a collapsed box (JS calculations problem)
point - March 18, 2008 - 13:10
| Project: | Imagefield Crop |
| Version: | 5.x-1.0 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If image field with cropping option is set as collapsible or is set inside collapsible group, the content of cropping area displays wrong part of the original picture and it totally collapses after trying to resize it.
| Attachment | Size |
|---|---|
| crop.jpg | 62.56 KB |

#1
The cropping area calculation is done on javascript and base on the position of the cropping area. When the page is loaded with this collapsed, the calculation fails.
If someone with good javascript skills reads this, please help me to understand what event happens when the user expands the collapsible box, so I will know to bind the calculations to that event.
In the meanwhile, I have removed this option from the widget settings, and added this as a limitation of this module.
#2
I committed a fix, hopefully the JS code is sane..
#3
Automatically closed -- issue fixed for two weeks with no activity.