flexie icon indicating copy to clipboard operation
flexie copied to clipboard

javascript error when flexMatrix defined

Open emperon opened this issue 12 years ago • 1 comments

Hello,

when I use the js api , with following :

var box = new Flexie.box({ target : document.getElementById("main"), orient : "vertical", align : "center", flexMatrix : [1,2,7] });

when ever I use flexMatrix I get a javascript error such that it points to line 1553 in version (1.0.3):

for (m = 0, n = x.properties.length; m < n; m++) { rule = x.properties[m]; ...

here , debugger says properties == undefined so length gives error. As a temporary workaround I put if(x.properties) on top of the for loop

emperon avatar Aug 29 '11 19:08 emperon

Having this issue as well. I'll try the workaround above.

Edit: The workaround didn't work for me. Got me to line 1899 (of the unedited source), but flex.nodes is undefined and causing problems with cleanPositioningProperties().

JHawkley avatar Oct 29 '11 12:10 JHawkley