Bug #9458: Adjust width based on viewport position of viewport content element
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 20 Dec 2010 23:22:43 +0000 (16:22 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 20 Dec 2010 23:22:43 +0000 (16:22 -0700)
imp/js/viewport.js

index 004eef0..7f09f3b 100644 (file)
@@ -1207,7 +1207,7 @@ var ViewPort = Class.create({
 
         case 'vert':
             drag = DragDrop.Drags.getDrag(e.element());
-            sp.vert.width = drag.lastCoord[0];
+            sp.vert.width = drag.lastCoord[0] - this.opts.content.viewportOffset()[0];
             this.opts.content.setStyle({ width: sp.vert.width + 'px' });
             change = drag.wasDragged;
             break;