Hi Here is my function to simulate an alert():
http://www.nabble.com/file/3961/qxAlert.html qxAlert.html I have detected several problems: 1) The 1st time it appears it is too wide, the 2nd time the width is correct. Why this different behaviour? I create a new instance each time. 2) If the text is too long, the maximum width of the window doesn't take any effect Surely, the tricky part is the wrapped label. I have also tried this trick from Andreas, but doesn't work either: qx.OO.defineClass('qx.ui.basic.WrappedLabel', qx.ui.basic.Label, function() { qx.ui.basic.Label.apply(this, arguments); this.setWrap(true); }); qx.Proto._changeInnerWidth = function(newValue, oldValue) { var node = this._copyStyles(); node.innerHTML = this.getHtml(); node.style.width = newValue + "px"; this.setHeight(node.offsetHeight); return qx.ui.basic.Label.prototype._changeInnerWidth.call(this, newValue, oldValue); } Regards, David -- View this message in context: http://www.nabble.com/Simulating-alert%28%29-tf2566575.html#a7153538 Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
