Ralf Nieuwenhuijsen schrieb:
Hi, i've been using this code to show up a debug window, for the
qooxdoo debug messages.
It works nicely, except the window resizes together with the list.. is
there a way around this? Or should I use another widget instead of
QxList? Ah, well for now, it will do just fine.
yourWindow.setMinHeight(null);
yourWindow.setMinWidth(null);
should help.
Sebastian
All one has to do is to add this line to your to put this above any of
your other code:
window.application.main = function()
{
this.add(debugWindow);
// the rest of your normal code
}
and to add this code at the top of your javascript code:
// QooxDoo Debugging Messages //
var debugWindow = new QxWindow("QooxDoo Debugging Messages",
"icons/16/bell.png");
debugWindow.setSpace(20, 400, 48, 250);
debugList = new QxList();
debugList.set({top: 0, bottom: 0, left: 0, right: 0, overflow: "scroll"});
debugWindow.add(debugList);
QxObject.prototype.debug = function(m, c) {
var clz = this.classname;
var hc = this._hashCode;
debugWindow.open();
debugWindow.setSpace(20, 400, 48, 250);
setTimeout(function() {
debugList.add (new QxListItem (clz+"@"+hc+":" + m + " (" + c +
")"));
}, 0);
};
Greetings,
Ralf
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel