ftcolumnflow
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "ftcolumnflow", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "FT Labs <enquiries@labs.ft.com> (http://labs.ft.com/)", | ||
@@ -5,0 +5,0 @@ "description": "FTColumnflow is a polyfill that fixes the inadequacies of CSS column layouts.", |
@@ -191,7 +191,11 @@ # FTColumnflow [![Build Status](https://travis-ci.org/ftlabs/ftcolumnflow.png?branch=master)](https://travis-ci.org/ftlabs/ftcolumnflow) | ||
* `showGrid: true */,` | ||
* `allowReflow: true,` | ||
Allow a `reflow()` call to occur. The advantage of disabling this is that ColumnFlow will clean up all preload DOM nodes after the initial `flow`, which are otherwise reused on `reflow()`. *(Boolean, default true)* | ||
* `showGrid: true,` | ||
Show the baseline grid - very useful for debugging line-height issues. *(Boolean, default false)* | ||
* `debug: true */,` | ||
* `debug: true,` | ||
@@ -198,0 +202,0 @@ Print internal calls to `_log()` to the console (Useful for development, not used in this release). *(Boolean, default false)* |
@@ -1495,2 +1495,6 @@ /** | ||
if (!config.allowReflow) { | ||
throw new FTColumnflowException('ReflowException', 'reflow() was called but "allowReflow" config option was false.'); | ||
} | ||
if (newConfig) { | ||
@@ -1497,0 +1501,0 @@ _setConfig(newConfig); |
@@ -113,3 +113,14 @@ /** | ||
'ShouldPreventAReflowWhenConfigFlagIsFalse' : function() { | ||
createCf({ | ||
allowReflow: false | ||
}).flow('<div class="height3000">height3000</div>'); | ||
assert.exception(function test() { | ||
cf.reflow(); | ||
}, 'FTColumnflowReflowException'); | ||
}, | ||
/* | ||
@@ -116,0 +127,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188889
3299
360