Create BufferService

This commit is contained in:
Daniel Imms
2019-06-08 16:59:28 -07:00
parent a6540c8d06
commit 0dfc1afc21
4 changed files with 46 additions and 12 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class DomMeasureStrategy implements IMeasureStrategy {
// Note that this triggers a synchronous layout
const geometry = this._measureElement.getBoundingClientRect();
console.log('measure', geometry);
// If values are 0 then the element is likely currently display:none, in which case we should
// retain the previous value.
if (geometry.width !== 0 && geometry.height !== 0) {