summaryrefslogtreecommitdiff
path: root/www/external
diff options
context:
space:
mode:
Diffstat (limited to 'www/external')
-rw-r--r--www/external/origjs/packery.pkgd.js4
-rw-r--r--www/external/packery.pkgd.min.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/www/external/origjs/packery.pkgd.js b/www/external/origjs/packery.pkgd.js
index 7576576b..fa4e8308 100644
--- a/www/external/origjs/packery.pkgd.js
+++ b/www/external/origjs/packery.pkgd.js
@@ -3088,10 +3088,10 @@ proto._bindFitEvents = function( item ) {
// -------------------------- resize -------------------------- //
// debounced, layout on resize
-proto.resize = function() {
+proto.resize = function(force) {
// don't trigger if size did not change
// or if resize was unbound. See #285, outlayer#9
- if ( !this.isResizeBound || !this.needsResizeLayout() ) {
+ if ( !force && (!this.isResizeBound || !this.needsResizeLayout()) ) {
return;
}
diff --git a/www/external/packery.pkgd.min.js b/www/external/packery.pkgd.min.js
index f1ba5e03..0a072330 100644
--- a/www/external/packery.pkgd.min.js
+++ b/www/external/packery.pkgd.min.js
@@ -227,7 +227,7 @@ else{var o=this._getElementOffset(t)
e=new i({x:this._getOption("originLeft")?o.left:o.right,y:this._getOption("originTop")?o.top:o.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},u.sortItemsByPosition=function(){var t=this._getOption("horizontal")?r:s
this.items.sort(t)},u.fit=function(t,e,i){var n=this.getItem(t)
n&&(this.stamp(n.element),n.enablePlacing(),this.updateShiftTargets(n),e=void 0===e?n.rect.x:e,i=void 0===i?n.rect.y:i,this.shift(n,e,i),this._bindFitEvents(n),n.moveTo(n.rect.x,n.rect.y),this.shiftLayout(),this.unstamp(n.element),this.sortItemsByPosition(),n.disablePlacing())},u._bindFitEvents=function(t){function e(){n++,2==n&&i.dispatchEvent("fitComplete",null,[t])}var i=this,n=0
-t.once("layout",e),this.once("layoutComplete",e)},u.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},u.needsResizeLayout=function(){var e=t(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth"
+t.once("layout",e),this.once("layoutComplete",e)},u.resize=function(t){(t||this.isResizeBound&&this.needsResizeLayout())&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},u.needsResizeLayout=function(){var e=t(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth"
return e[i]!=this.size[i]},u.resizeShiftPercentLayout=function(){var e=this._getItemsForLayout(this.items),i=this._getOption("horizontal"),n=i?"y":"x",o=i?"height":"width",s=i?"rowHeight":"columnWidth",r=i?"innerHeight":"innerWidth",a=this[s]
if(a=a&&a+this.gutter){this._getMeasurements()
var h=this[s]+this.gutter