Subversion Repositories wimsdev

Rev

Rev 3425 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. function BottomMove(newPos, element)
  3. {
  4.   DoHeight(newPos.Y, element);
  5. }
  6.  
  7. function RightMove(newPos, element)
  8. {
  9.   DoWidth(newPos.X, element);
  10. }
  11.  
  12. function CornerMove(newPos, element)
  13. {
  14.   DoHeight(newPos.Y, element);
  15.   DoWidth(newPos.X, element);
  16. }
  17.  
  18. function DoHeight(y, element)
  19. {
  20.   //textDiv.style.height = (y + 5) + 'px';
  21.  
  22.   //if(element != handleCorner)
  23.     //handleCorner.style.top = y + 'px';
  24.  
  25.   //handleRight.style.height = y + 'px';
  26.  
  27.   if(element != handleBottom)
  28.     handleBottom.style.top = y + 'px';
  29.  
  30.   wims_deposit_id.style.height = (y - 19) + 'px';
  31.  
  32. }
  33.  
  34. function DoWidth(x, element)
  35. {
  36.         var decalage = 2;
  37.   /*textDiv.style.width =  (x + 5) + 'px';*/
  38.  
  39.   if(element != handleCorner)
  40.     handleCorner.style.left = x + 'px';
  41.  
  42.   if(element != handleRight)
  43.     handleRight.style.left = x + 'px';
  44.  
  45.   handleBottom.style.width = x + 'px';
  46.  // handleBottom.style.top = redim_div.style.height + 'px';
  47.   handleBottom.style.top = redim_div.style.height;
  48. //alert(redim_div.style.height);
  49.   redim_div.style.width = (x - decalage) + 'px';
  50.   enev_menu.style.width = (x - decalage) + 'px';
  51.   //enev_menu.style.width = wims_deposit_id.offsetHeight + 'px';
  52.  
  53.  
  54. }