Hi, with current qooxdoo git version 2.0 (and with v1.6 release): I have a composite with VBox and some buttons to add/remove entries. After adding/removing some I get: "004033 Error
in the 'Layout' queue:TypeError: can't convert content to
string"
thrown by qx.ui.core.queue.Layout.flush(); Usually the complete GUI freezes. Removing this line FIXES it: deleteButton.setToolTipText(this.trc("tooltip", this.trc("toolTip", "Remove line"))); Also changing the line to deleteButton.setToolTipText("Remove line"); fixes it. The code is as follows: ======================== /** * Create in Application.js * var attWidget= new proto.AttributeWidget(); * this.doc.add(attWidget, {left: 150, top: 0}); */ qx.Class.define("proto.AttributeWidget", { extend : qx.ui.groupbox.GroupBox, construct: function() { this.base(arguments); this.setLayout(new qx.ui.layout.Grow()); this.container=new qx.ui.container.Composite(new qx.ui.layout.VBox(1)); this.add(this.container); this.__createHeadlineBox(); this.count = 0; }, members : { __createHeadlineBox: function(){ var box= new qx.ui.container.Composite(new qx.ui.layout.HBox(1)); box.add(new qx.ui.basic.Label("Key").set({width:100, alignY:"bottom"})); box.add(new qx.ui.container.Composite(new qx.ui.layout.VBox(0)), {flex:1}); //space vor button this.addButton=new qx.ui.form.Button(null,"icon/16/actions/list-add.png").set({width:20, gap:0}); this.addButton.addListener("click", function(){ try { this.__createIdBox("test-" + (this.count++)); } catch (ex) { this.error("addButton exception: " + ex); } },this); box.add(this.addButton); this.container.add(box); }, __createIdBox : function(key){ var box= new qx.ui.container.Composite(new qx.ui.layout.HBox(1)); var keyTextField=new qx.ui.form.TextField(key).set({width:100}); box.add(keyTextField); box.add(new qx.ui.container.Composite(new qx.ui.layout.VBox(0)), {flex:1}); //space vor button var deleteButton=new qx.ui.form.Button(null,"icon/16/actions/list-remove.png").set({width:20, gap:0}); deleteButton.setToolTipText(this.trc("tooltip", this.trc("toolTip", "Remove line"))); deleteButton.addListener("click", function(){ try { this.container.remove(box); } catch (ex) { this.error("deleteButton exception: " + ex); } },this); box.add(deleteButton); this.container.add(box); } } ======================== ![]() |
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel