svn commit: r603336 - /lenya/trunk/src/modules/editors/resources/javascript/insertAsset.js

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Tue Dec 11 11:09:22 2007
New Revision: 603336

URL: http://svn.apache.org/viewvc?rev=603336&view=rev
Log:
Fix scaling problem from bug 44057

Modified:
    lenya/trunk/src/modules/editors/resources/javascript/insertAsset.js

Modified: lenya/trunk/src/modules/editors/resources/javascript/insertAsset.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/resources/javascript/insertAsset.js?rev=603336&r1=603335&r2=603336&view=diff
==============================================================================
--- lenya/trunk/src/modules/editors/resources/javascript/insertAsset.js (original)
+++ lenya/trunk/src/modules/editors/resources/javascript/insertAsset.js Tue Dec 11 11:09:22 2007
@@ -45,7 +45,7 @@
   */
 function scaleWidth(height) {
   var ratio = document.forms['insertAsset'].ratio.value;
-  document.forms['insertAsset'].width.value = height * ratio;
+  document.forms['insertAsset'].width.value = height * 1.0 / ratio;
   focus(); 
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.