diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-06-04 17:52:29 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-06-04 17:52:29 -0400 |
| commit | 59f09ac5a51b1d64d48086d75327c85adf3b56be (patch) | |
| tree | 6d20843174dfb0cebe00d6b3ac462bfe094c2d61 /www/external | |
| parent | 943462f599f5e0730f7d0b05e880fb8490572bbc (diff) | |
montage layout tweaks
Former-commit-id: e905dd89733bcb98c0aebeea74a442589d02ce57
Diffstat (limited to 'www/external')
| -rw-r--r-- | www/external/packery.pkgd.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/www/external/packery.pkgd.js b/www/external/packery.pkgd.js index f7edb5b0..a85a10f4 100644 --- a/www/external/packery.pkgd.js +++ b/www/external/packery.pkgd.js @@ -2752,7 +2752,8 @@ Packery.prototype.getShiftPositions = function( attrName ) { attr: item.element.getAttribute( attrName ), size: item.element.getAttribute ("data-item-size"), display: item.element.getAttribute ("data-item-listdisplay"), - x: item.rect.x / _this.packer.width + x: item.rect.x / _this.packer.width, + y: item.rect.y / _this.packer.height } }); }; @@ -2782,6 +2783,7 @@ Packery.prototype.initShiftLayout = function( positions, attr ) { var itemElem = this.element.querySelector( selector ); var item = this.getItem( itemElem ); item.rect.x = itemPosition.x * this.packer.width; + item.rect.y = itemPosition.y * this.packer.height; return item; }, this ); this.shiftLayout(); |
