Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 371348

Summary: JavaScript error when creating cell editors
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: tbuschto
Version: 1.5   
Target Milestone: 1.5 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2012-02-13 04:50:43 EST
Steps to reproduce:
1. Start Controls Demo -> TableViewer Tab
2. Press "Create cell editors" button
In Firefox I get:
--------------
Could not evaluate javascript response:

Error: Error: Operation "create" on target "w163" of type "org.eclipse.swt.widgets.Combo" failed:
text._inputElement is null
--------------
In Chrome I get:
--------------
Could not evaluate javascript response:

Error: Error: Operation "create" on target "w163" of type "org.eclipse.swt.widgets.Combo" failed:
Cannot read property 'style' of null
--------------
Comment 1 Tim Buschtoens CLA 2012-02-13 05:47:07 EST
That was me, somehow. I'm on it.
Comment 2 Tim Buschtoens CLA 2012-02-13 05:57:03 EST
Fixed in CVS HEAD.

The code in question is in TextUtil.js#_updateLineHeight, which i will refactor soon anyway, so this was only a quickfix to get it running again. I will add additional tests before refactoring.