From 76f52c85a7bc3427dc6039f120fbcd29c7914fbe Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 20 Dec 2010 16:22:43 -0700 Subject: [PATCH] Bug #9458: Adjust width based on viewport position of viewport content element --- imp/js/viewport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/viewport.js b/imp/js/viewport.js index 004eef041..7f09f3be2 100644 --- a/imp/js/viewport.js +++ b/imp/js/viewport.js @@ -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; -- 2.11.0