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

Bug 300038

Summary: [Combo] Causes warning messages in qooxdoo console
Product: [RT] RAP Reporter: Sascha Becher <s.becher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Sascha Becher CLA 2010-01-19 05:47:04 EST
When using a ComboViewer the default way:

this.roleCombo = new ComboViewer(parent, SWT.READ_ONLY);
this.roleCombo.setContentProvider(new ActorRoleContentProvider());
this.roleCombo.setLabelProvider(new ActorRoleLabelProvider());
this.roleCombo.setInput(""); //$NON-NLS-1$
this.roleCombo.setSelection(new StructuredSelection(ActorRole.COORDINATOR));
this.roleCombo.getCombo().setLayoutData(ViewGuiFactory.getComboGridData());

I get this error message in the qooxdoo console everytime when making changing  the selection of the combo:

006595 WARN:  qx.ui.form.ListItem[1258]: The function scrollIntoViewY can only be called after the widget is created!

The ComboViewer works as expected.
I have reproduced this with a couple of other ComboViewers in the application so it doesn't seem to be a side-effect of a particular view.
This happens in FireFox 3.5 and Explorer 7.
Comment 1 Ivan Furnadjiev CLA 2010-01-19 09:42:14 EST
Actually this is not an error, but a warning.... and it is only visible if the client side log level is switched on.
Comment 2 Sascha Becher CLA 2010-01-19 10:36:07 EST
(In reply to comment #1)
> Actually this is not an error, but a warning.... and it is only visible if the
> client side log level is switched on.

The warning suggests a wrong order of calling scrollIntoViewY? Maybe this can be fixed, so the console stays clean for really important warnings.
I understand that there is no problem in using the ComboViewer at all.
Maybe I don't really need the console.
Comment 3 Ivan Furnadjiev CLA 2010-01-20 05:50:36 EST
Fixed in CVS HEAD.
Comment 4 Sascha Becher CLA 2010-01-20 07:19:10 EST
Thank you!