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+

This commit is contained in:
Ehsan Akhgari 2010-11-11 21:11:28 -05:00
Родитель 8e92dc1a04
Коммит 4395f688e2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;