From: Michael M Slusarz Date: Mon, 20 Dec 2010 23:22:43 +0000 (-0700) Subject: Bug #9458: Adjust width based on viewport position of viewport content element X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=76f52c85a7bc3427dc6039f120fbcd29c7914fbe;p=horde.git Bug #9458: Adjust width based on viewport position of viewport content element --- 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;