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
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.

AttachmentSize
crop.jpg62.56 KB

#1

yhager - March 25, 2008 - 10:40
Title:Cropping area collapses» Fails when inside a collapsed box (JS calculations problem)

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

yhager - April 3, 2008 - 13:45
Status:active» fixed

I committed a fix, hopefully the JS code is sane..

#3

Anonymous (not verified) - April 17, 2008 - 13:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.