Hello,

We use qx.ui.treevirtual.TreeVirtual and we want to show tooltip,
based on TreeVirtual cell data. To show tooltip over cell we set
focusCellOnMouseMove property to "True" and on "mouseMove" event call
getFocusedRow() and getFocusedColumn() methods to get column/row
index, set tooltip_text show it as tooltip.

In this case we have a problem. If we push Home or End keyboard
buttons and mouse pointer placed over existing grid row, all ok. But,
if we place mouse pointer out from existing grid row we get an error
message to browser debug console, such as:

423526 Assertion error! Invalid argument 'col'.: Expected value to be
an integer but found 'undefined'!
 Stack trace:
qx.core.AssertionError.constructor(),qx.core.AssertionError.constructor(),qx.core.Assert.__fail(),qx.core.Assert.assertInteger(),qx.type.BaseString.prototype.assertInteger(),qx.ui.table.columnmodel.Basic.prototype.getVisibleX(),qx.ui.table.Table.prototype.scrollCellVisible(),qx.ui.table.Table.prototype.setFocusedCell(),qx.ui.table.Table.prototype._onKeyPress(),qx.core.Object.prototype.base(),qx.ui.treevirtual.TreeVirtual.prototype._onKeyPress(),qx.ui.core.EventHandler.prototype._dispatchEvent(),qx.event.dispatch.AbstractBubbling.prototype.dispatchEvent(),qx.event.Manager.prototype.dispatchEvent(),qx.event.handler.Keyboard.prototype._fireSequenceEvent(),qx.event.handler.Keyboard.prototype._idealKeyHandler(),anonymous(),qx.event.handler.Keyboard.prototype.__onKeyUpDown(),anonymous()
ErrorHandler.js:48GUI Expected value to be an integer but found 'undefined'! in
file:///home/.../build/libs/qooxdoolib/framework/source/class/qx/core/Assert.js:79

This situation shown on the following video:
https://dl.dropbox.com/u/140674/test-0000.mpeg. This bug repeats only
after when TreeVirtual lost focus and took it again (e.g. we click on
TreeVirtual, then choose another tab, then choose tab with TreeVirtual
an click it on space out of existing rows).

If we set focusCellOnMouseMove property to false, bug not reproduced,
but we can't show tooltip correctly, because getFocusedRow() and
getFocusedColumn() methods of TreeVirtual returns null in this case.
We can't get row and col cell index under mouse pointer.
Is we have another way to show tooltip, based on cell data? If not,
how to fix bug with Home and End buttons?

-- 
Dmitry Golubkov,
BrainBean Corp.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to