From 244d40f2e0713d38583f97ffc6aa3d72b21da5ef Mon Sep 17 00:00:00 2001 From: Hannes Widmoser Date: Wed, 29 Jun 2016 14:39:26 +0200 Subject: [PATCH] Always digest when resizing --- dist/tileview.js | 6 +++--- src/tileview.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/tileview.js b/dist/tileview.js index 34ea078..b46fb49 100644 --- a/dist/tileview.js +++ b/dist/tileview.js @@ -257,16 +257,16 @@ renderedStartRow = startRow; renderedEndRow = endRow; } - function resize(withDigest) { + function resize() { var newComponentSize = container[0].getBoundingClientRect(); if (newComponentSize.width !== componentWidth || newComponentSize.height !== componentHeight) { - if (layout(false) && withDigest === true) { + if (layout(false)) { forEachElement(function (el) { return el.scope().$digest(); }); } } } function onResize() { - resize(true); + resize(); } function measure() { var rect = container[0].getBoundingClientRect(); diff --git a/src/tileview.ts b/src/tileview.ts index 13ab92d..4789f8f 100644 --- a/src/tileview.ts +++ b/src/tileview.ts @@ -294,17 +294,17 @@ declare const angular: any; renderedEndRow = endRow; } - function resize(withDigest) { + function resize() { const newComponentSize = container[0].getBoundingClientRect(); if (newComponentSize.width !== componentWidth || newComponentSize.height !== componentHeight) { - if (layout(false) && withDigest === true) { + if (layout(false)) { forEachElement(el => el.scope().$digest()); } } } function onResize() { - resize(true); + resize(); } function measure() {