'pix' variable giving javacript error when trying to be accessed

Hello

When i turn the experiment (credit card scaling) to work in ‘pix’ settings instead of ‘height’ , the scaling is working fine. But when i try to access the variable x_scale, i get a Javascript error that is pretty non descriptive. This does not happen if the only thing i turn back is the unit to ‘height’.

Does any one know what the cause might be?
thanks!

Is the JS file generated from your experiment perhaps named untitled.js?

If you set units to pix you will get a JavaScript error if you have any visual components with a size of less than 0.5 pixels.