From 4395f688e2e13f7bb226a8dd81ec3fe2d2518e58 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Thu, 11 Nov 2010 21:11:28 -0500 Subject: [PATCH] Bug 587248 - Part 16: Don't resize the groups if we explicitly request their size to remain constant while dragging; r=ian a=blocking-betaN+ --- browser/base/content/tabview/drag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/tabview/drag.js b/browser/base/content/tabview/drag.js index 8f6f74948575..8b47fdf8e147 100644 --- a/browser/base/content/tabview/drag.js +++ b/browser/base/content/tabview/drag.js @@ -205,7 +205,7 @@ Drag.prototype = { var snapRadius = (Keys.meta ? 0 : Trenches.defaultRadius); if (rect.left < swb.left + snapRadius ) { - if (stationaryCorner.indexOf('right') > -1) + if (stationaryCorner.indexOf('right') > -1 && !assumeConstantSize) rect.width = rect.right - swb.left; rect.left = swb.left; update = true; @@ -228,7 +228,7 @@ Drag.prototype = { delete snappedTrenches.left; } if (rect.top < swb.top + snapRadius) { - if (stationaryCorner.indexOf('bottom') > -1) + if (stationaryCorner.indexOf('bottom') > -1 && !assumeConstantSize) rect.height = rect.bottom - swb.top; rect.top = swb.top; update = true;