Community
Participate
Working Groups
Build Identifier: If a user presses the key PageUp or PageDown in a active combo box cell editor (where the list is not displayed), the following java script error occurs. ------------------------ Javascript error occurred: qx.ui.layout.VerticalBoxLayout: Element must be created previously! ------------------------- I will attach a test project for reproducing the problem. Further information: - RAP 1.4 - tested browsers: Firefox 3.6 and InternetExplorer 8 Reproducible: Always Steps to Reproduce: 1. Run TestProject.launch 2. Activate cell editor by clicking one time on a cell -> cursor is in the cell 3. Press pageUp or pageDown => Java script error page
Created attachment 199653 [details] Test project for reproducing Test project containing a view with table viewer having ComboBoxCellEditors based on the following jface snippet: http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet027ComboBoxCellEditors.java?view=markup
Reproducible with Controls Demo -> Combo Tab too.
It seems that this is a very old bug. Just checked with 1.3 release and it is there, but the error is only shown in browser javascript error console. With the fix for bug 334758 these hidden javascript errors now surfaced.
The actual error is in qx.ui.selection.SelectionManager.js#getPageUp/getPageDown when calling getScrollTop/getClientHeight on non created widget.
Fixed in CVS HEAD in qx.ui.selection.SelectionManager.js#getPageUp/getPageDown by checking if vBoundedWidget is created before start the calculation. JS test added.
Created attachment 199980 [details] Proposed patch for v14_Maintenance branch Same fix as the one committed in CVS HEAD.
I adapt the patch (fragment q07) and apply it to our used RAP plugins based on RAP 1.4 Maintenance branch. The error does not occur anymore. Thanks for the patch.
Created attachment 200059 [details] Proposed patch for v14_Maintenance branch (In reply to comment #7) > I adapt the patch (fragment q07) ... Sorry for the trouble... my fault (the patch was against HEAD). This is the same patch against v14_Maintenance branch - no need to adapt it anymore.
Applied patch to v14_Maintenance branch.
Commited patch to v14_Tree_Table_Merge branch.