in blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/EditorContent.js [238:333]
function moveHandle(e){
if(dragapproved){
var w=ns6?e.clientX-x:event.clientX-x;
var h=ns6?e.clientY-y:event.clientY-y;
var _15=MM_findObj("constProp",window.top.document);
var _16=document.theImage.height;
var _17=document.theImage.width;
rapp=_17/_16;
rapp_inv=_16/_17;
switch(resizeHandle){
case "s-resize":
if(oa_h+h>=0){
ant.style.height=oa_h+h;
if(_15.checked){
ant.style.width=rapp*(oa_h+h);
ant.style.left=oa_x-rapp*h/2;
}
}
break;
case "e-resize":
if(oa_w+w>=0){
ant.style.width=oa_w+w;
if(_15.checked){
ant.style.height=rapp_inv*(oa_w+w);
ant.style.top=oa_y-rapp_inv*w/2;
}
}
break;
case "n-resize":
if(oa_h-h>=0){
ant.style.top=oa_y+h;
ant.style.height=oa_h-h;
if(_15.checked){
ant.style.width=rapp*(oa_h-h);
ant.style.left=oa_x+rapp*h/2;
}
}
break;
case "w-resize":
if(oa_w-w>=0){
ant.style.left=oa_x+w;
ant.style.width=oa_w-w;
if(_15.checked){
ant.style.height=rapp_inv*(oa_w-w);
ant.style.top=oa_y+rapp_inv*w/2;
}
}
break;
case "nw-resize":
if(oa_h-h>=0&&oa_w-w>=0){
ant.style.left=oa_x+w;
ant.style.width=oa_w-w;
ant.style.top=oa_y+h;
if(_15.checked){
ant.style.height=rapp_inv*(oa_w-w);
}else{
ant.style.height=oa_h-h;
}
}
break;
case "ne-resize":
if(oa_h-h>=0&&oa_w+w>=0){
ant.style.top=oa_y+h;
ant.style.width=oa_w+w;
if(_15.checked){
ant.style.height=rapp_inv*(oa_w+w);
}else{
ant.style.height=oa_h-h;
}
}
break;
case "se-resize":
if(oa_h+h>=0&&oa_w+w>=0){
ant.style.width=oa_w+w;
if(_15.checked){
ant.style.height=rapp_inv*(oa_w+w);
}else{
ant.style.height=oa_h+h;
}
}
break;
case "sw-resize":
if(oa_h+h>=0&&oa_w-w>=0){
ant.style.left=oa_x+w;
ant.style.width=oa_w-w;
if(_15.checked){
ant.style.height=rapp_inv*(oa_w-w);
}else{
ant.style.height=oa_h+h;
}
}
}
showStatus();
return false;
}
}