[#8127] Javascript error in sub folder preview
Summary Javascript error in sub folder preview
Queue DIMP
Queue Version 1.1.1
Type Bug
State Resolved
Priority 2. Medium
Owners Michael Slusarz <slusarz (at) horde (dot) org>
Requester ffv (at) tjpr (dot) jus (dot) br
Created 03/29/09 (348 days ago)
Due 03/29/09 (348 days ago)
Updated 01/12/10 (59 days ago)
Assigned 03/30/09 (347 days ago)
Resolved 04/20/09 (326 days ago)
Attachments javascriptbug.jpg Download
Milestone
Patch No

History
01/12/10 CVS Commit Comment #7 Reply to this comment
04/20/09 Michael Slusarz Comment #6
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
This is probably a symptom of the greater overall issue - we should 
not be displaying subfolders in the 'specialfolders' section of the 
folder list, since it is not really designed for that (in terms of 
sizing the folderlist).  The solution: if a specialfolder contains 
children, create a dummy container entry in the bottom list and 
display subfolders there instead.  This has been implemented for IMP 5 
(it will not be backported to DIMP 1.x).
03/30/09 ffv (at) tjpr (dot) jus (dot) br Comment #5 Reply to this comment
Hi all,



tries to create subfolders (many subfolders) inside of folder "Sent" 
of form that when expanded it makes with that the Trash folder does 
not appear in the left panel. After this, click in any subfolder 
inside of the folder "Sent" and verifies that a Javascript error will   
appear in the browser



.
03/30/09 Michael Slusarz Comment #4 Reply to this comment
I can not reproduce on either IE 6 or IE 7.
03/30/09 ffv (at) tjpr (dot) jus (dot) br Comment #3 Reply to this comment
Hi,



  the error appears as "Invalid Argument" in line 1927 of script 
"js/prototype.js" in the following stretch of code:



     for (var property in styles)

       if (property == 'opacity') element.setOpacity(styles[property]);

       else

         elementStyle[(property == 'float' || property == 'cssFloat') ?

           (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 
'styleFloat') :

             property] = styles[property];







When activating debug, the value of styles[property] appears as " - 
19px". I believe that this value would have to be positive. This 
Happens when a system folder possesss many subfolders and the user 
expands it making with that it does not fit all the objects in the 
screen.
03/30/09 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
And what *is* the error message? Also, make sure to load the 
uncompressed javascript file versions from js/src, so that we get 
meaningful line numbers.
03/29/09 ffv (at) tjpr (dot) jus (dot) br Comment #1
State ⇒ Unconfirmed
New Attachment: javascriptbug.jpg Download
Patch ⇒
Milestone ⇒
Queue ⇒ DIMP
Due ⇒ 03/29/09
Summary ⇒ Javascript error in sub folder preview
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
Hi all,

has A  Bug of Javascript when I have many sub folders inside of a 
system folder (Sent, Drafts, Trash). In this case, when I click in one 
of innumerable subpastas, a Javascript error happens and the subfolder 
preview does not occur. In annex I show an image as example. This bug 
happens with IE6,7,8 and it does not occur with firefox