rem: var w = w0 + (x0 - hop_mouse_y( event )); 
add: var w = w0 + (x0 - hop_event_mouse_y( event )); 
context: function hop_iwindow_resize( event, win, widthp, heightp ) {   var x0 = hop_mouse_x( event );   var y0 = hop_mouse_y( event );   var w0 = win.el_main.offsetWidth;   var h0 = win.el_main.offsetHeight;   var mousemove;   hop_style_set( win.el_body, "display", "none" );      if( widthp && heightp ) {      mousemove = function( event ) {	 hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) );	 hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) );      };      hop_add_event_listener( document, "mousemove", mousemove );   } else {      if( widthp ) {	 mousemove = function( event ) {	    hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) );	 };	 hop_add_event_listener( document, "mousemove", mousemove );      } else {	 if( heightp ) {	    mousemove = function( event ) {	       hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) );	    };	    hop_add_event_listener( document, "mousemove", mousemove );	 } else {	    var l0 = win.offsetLeft;	    mousemove = function( event ) {	       var w = w0 + (x0 - hop_mouse_y( event ));	       hop_style_set( win ,"left", (l0 + w0) - w );	       hop_style_set( win.el_main, "width", w );	       hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) );	    }	    hop_add_event_listener( document, "mousemove", mousemove );	 }      }   }   var mouseup = function( event ) {      hop_style_set( win.el_body, "display", "block" );      hop_remove_event_listener( document, "mousemove", mousemove );      hop_remove_event_listener( document, "mouseup", mouseup );      /* user event */      if( win.onresize ) win.onresize();   }   hop_add_event_listener( document, "mouseup", mouseup );      hop_stop_propagation( event );}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js