Hi qooxdoo people,
when I use QxTree as property of my object (child of QxDockLayout), everything seems ok, but I get this message from qooxdoo debugger:
QxTree[HASHCODE:67]
000375:Failed to execute "_modifyParent()":Modification of property "parent" failed with exception(propValue.getParent() has no properties)

My code:

function MyApp() {
  QxDockLayout.call(this);

  this.setLocation(0, 0);
  this.setDimension(800, 600);
  this.setBorder(QxBorder.presets.black );

  this._modules=new QxTree("Test");
  this.add(this._modules);

}
MyApp.extend(QxDockLayout,"MyApp");

window.application.main = function() {
 
  var doc = this.getClientWindow ().getClientDocument();

  var dockLayout = new MyApp();

  doc.add(dockLayout);

}


When I use QxTree in window.application.main body, then everything is ok and no error message is thrown:

function MyApp() {
  QxDockLayout.call(this);
 
 this.setLocation(0, 0);
  this.setDimension(800, 600);
  this.setBorder(QxBorder.presets.black);
}
MyApp.extend(QxDockLayout,"MyApp");

window.application.main = function() {
 
  var doc = this.getClientWindow().getClientDocument();

  var dockLayout = new MyApp();

  doc.add(dockLayout);

  modules=new QxTree("Test");
  dockLayout.addLeft(modules);

}


Am I doing anything wrong or is it bug in qooxdoo? (I am using qooxdoo 0.5.1)

Best regards,
Petr

Reply via email to