jit icon indicating copy to clipboard operation
jit copied to clipboard

IE7 script error

Open Sly1024 opened this issue 12 years ago • 1 comments

IE7 (actually IE9 in IE7 compat mode) throws an error when JIT tries to set a width/height style to a negative value:

version: 2.0.0b file: jit.js, line: 15353

possible fix: style.width = Math.max(0, node.getData('width')) * sx + 'px'; style.height = Math.max(0, node.getData('height')) * sy + 'px';

Sly1024 avatar Mar 28 '13 12:03 Sly1024

Thanks for reporting! Could you submit a pull request for this please?

philogb avatar Mar 28 '13 17:03 philogb