зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8e92dc1a04
Коммит
4395f688e2
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче