I have a horizontalBoxLayout over the complete size of the screen. On the left, there is a tree-Object(about 200px width and height 100%) and the rest is an Atom where I will put all my Content depending on the selected TreeFolder/File.
If there is a better solution (I'm sure there is ;) ) please let me know. Thanks! Tobias -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Sebastian Werner Gesendet: Mittwoch, 14. März 2007 10:41 An: qooxdoo Development Betreff: Re: [qooxdoo-devel] table inside an Atom and event "appear" I don't know why at all you want to place a table inside a atom. I don't think the table was developed for such a usage. I am not sure how the timeout-based workarounds for some layout engine bugs, which are used by the table, influence the compatibility with the appear events. I think your problem is a timing problem. Please try to add some debug outputs to get a better understanding of what happens when. Sebastian Tobias Koller (GERMO GmbH) schrieb: > Hello, > > > > I try to update data (different content: atoms, layouts, labels,etc) > inside an Atom each time I click on a node in a Tree-Obj. > > That works fine if there is no table-Obj to be displayed in the atom. > > > > Here an example: > > > > qx.Proto.test = function(){ > > var widget = new qx.ui.basic.Atom(); > > atom.set({width:"100%", height:"100%"}); > > > > widget.addEventListener("appear", *function*(e){ > > widget.removeAll(); > > > > *var* ret = *this*.getSettings(); > > > > widget.add(ret); > > }); > > } > > > > qx.Proto.getSettings = function(){ > > *var* tableModel = *new* qx.ui.table.SimpleTableModel(); > > tableModel.setColumns([ "ID","testfeld1","bearbeiten","löschen" ]); > > * * > > var list = *new* Array(*new* Array("1","testuser",*false*,*false*)); > > > > tableModel.setData(userList); > > > > *var* table = *new* qx.ui.table.Table(tableModel); > > //table.setStatusBarVisible(false); > > *with* (table) { > > *var* br = *new* qx.renderer.border.Border(1, "solid", > "#91A5BD");//Rand > > set({ width:"100%", height:"1*", rowHeight:22, border: br }); > > > getSelectionModel().setSelectionMode(qx.ui.table.SelectionModel.NO_SELECTION); > > > > setColumnWidth(0, 20); > > setColumnWidth(1, 400); > > setColumnWidth(2, 70); > > setColumnWidth(3, 70); > > setBackgroundColor("#FAFBFE"); > > }; > > > > return table; > > } > > > > > > When I remote the "appear"-Eventlistener, everything is displayed correct. > > > > What could be the problem? > > > > Thanks! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- 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 qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- 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 qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel