Hello all
again a small problem.
I have a component with additional components inside of itself (I extend
qx.ui.layout.BoxLayout for that)
Inside of my qx.ui.layout.BoxLayout are two VerticalBoxLayouts, only one
is visible at a time (one is for showing data readonly, the other allows
to edit the same data with edit fields).
Now I have a problem: When the user clicks on the component the system
switches from view to edit mode (hide one VerticalBoxLayout, shows the
other VerticalBoxLayouts).
But after the second switch to edit mode, the switch back doesn't work
and I got the following message in the debug window:
015989 ERROR: qx.ui.layout.VerticalBoxLayout[152]: Setting property
"display" to "false" failed with exception: NS_ERROR_DOM_NOT_FOUND_ERR -
Node was not found
(tested with Mozilla Firefox 2.0.0.3 unter Ubuntu Linux)
Here are the two functions that do this:
qx.Proto.enterEditMode = function()
{
if (this._currentMode == 'EDIT')
return false;
this._mainList.setDisplay(false);
this._editList.setDisplay(true);
this._currentMode = 'EDIT';
this.setRealHeight();
this.removeEventListener("click", this.onClick);
}
qx.Proto.leaveEditMode = function(saveData)
{
if (this._currentMode == 'VIEW')
return false;
this._editList.setDisplay(false);
this._mainList.setDisplay(true);
this._currentMode = 'VIEW';
this.setRealHeight();
window.setTimeout(this._onTimer, 5000);
}
I hope someone knows a solution for that
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel