Hello everybody! I am trying to write my own little qooxdoo alert window using appearances. So i derived from qx.ui.window.Window and modified my appearance theme. It has an atom and a button as child widgets. The problem that I am stuck with is, that when i open an instance of this class, the window is much too small although the child widgets and even the window shadow have the correct positions and dimensions (looks funny). I use the qooxdoo 0.8.1 trunk.
Has anybody an idea what i am doing wrong? Regards, Florian Here is the simplified code: qx.Class.define("xyz.StatusWindow", { extend : qx.ui.window.Window, construct : function(caption) { this.base(arguments, caption); this.setLayout(new qx.ui.layout.VBox(10)); this._createChildControl("atom"); this._createChildControl("button"); }, members : { _createChildControlImpl : function(id) { var control = null; switch(id) { case "atom": control = new qx.ui.basic.Atom(); this._add(control); break; case "button": control = new qx.ui.form.Button(this.tr("Close")); this._add(control); break; } return control || this.base(arguments, id); } } }); qx.Theme.define("xyz.theme.Appearance", { extend : qx.theme.modern.Appearance, appearances : { "status-window" : "window", "status-window/button" : "button", "status-window/atom" : { alias: "atom", style : function(states) { return {icon : "xyz/image.gif"}; } } } }); // main function (qx.application.Standalone) var win_alert = new xyz.StatusWindow(); this.getRoot().add(win_alert); win_alert.open(); ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel