﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8091	IE CKEDITOR.editor.resize throw 'invalid argument' when no height value is specified	Michael Camden		"Steps to reproduce:

1. Go to ckeditor.com/demo
2. Open a javascript console and execute, 'CKEDITOR.instances.editor1.resize(50);'

The height value that is assigned becomes 'NaNpx' which is an invalid argument. Likely this has to due with line 345 in theme.js.

345 - contents.setStyle( 'height', Math.max( height - delta, 0 ) + 'px' );

In this case since height is undefined, Math.max(undefined - delta,0) returns NaN. NaN + 'px' = 'NaNpx'. Other browsers must handle this error more gracefully than IE. A simple conditional statement should fix this problem.

344 - if(height) {[[BR]]
345 - contents.setStyle( 'height', Math.max( height - delta, 0 ) + 'px' );[[BR]]
346 - }
"	Bug	confirmed	Normal		General	3.0		IE8	mcamden@…
