Update of 
/var/cvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups
In directory james.mmbase.org:/tmp/cvs-serv582

Modified Files:
        insertinline_image.html 
Log Message:
CMSC-1004, Inserting image in rich text editor returns wrong sizes into 
article,it return itsown size


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups
See also: http://www.mmbase.org/jira/browse/CMSC-1004


Index: insertinline_image.html
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- insertinline_image.html     21 Jun 2008 11:51:41 -0000      1.4
+++ insertinline_image.html     28 Jul 2008 08:40:38 -0000      1.5
@@ -100,22 +100,22 @@
   var imagePosition = document.getElementById("f_align").value
   if ("left" == imagePosition) {
     if (width && height) {
-      height = (IMAGE_WIDTH_LEFT / width) * height;
-      document.getElementById("f_width").value = IMAGE_WIDTH_LEFT;
+     // height = (IMAGE_WIDTH_LEFT / width) * height;
+      document.getElementById("f_width").value = width;
       document.getElementById("f_height").value = height;
     }
   }
   if ("right" == imagePosition) {
     if (width && height) {
-      height = (IMAGE_WIDTH_RIGHT / width) * height;
-      document.getElementById("f_width").value = IMAGE_WIDTH_RIGHT;
+      //height = (IMAGE_WIDTH_RIGHT / width) * height;
+      document.getElementById("f_width").value = width;
       document.getElementById("f_height").value = height;
     }
   }
   if ("" == imagePosition) {
     if (width && height) {
-      height = (IMAGE_WIDTH_FULL / width) * height;
-      document.getElementById("f_width").value = IMAGE_WIDTH_FULL;
+      //height = (IMAGE_WIDTH_FULL / width) * height;
+      document.getElementById("f_width").value = width;
       document.getElementById("f_height").value = height;
     }
   }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to