[qooxdoo-bugs] [Bug 6678] Clicking on the caption bar of a window with a listener causes the window
Brought to you by:
ecker,
martinwittemann
From: <bug...@qo...> - 2012-07-30 19:58:20
|
http://bugzilla.qooxdoo.org/show_bug.cgi?id=6678 --- Comment #3 from eda <eda...@co...> 2012-07-30 21:58:13 CEST --- (In reply to comment #1) > This is due to the margin top you set: > > var win = new qx.ui.window.Window("Boo"); > win.set({marginTop: 10}); > win.open(); > > What should that be for? The window is out of any rendering flow anyway so > having a margin does not make much sens for me. All I really want to know is why every time I click on the caption bar that the window moves down the screen. If it is something that I am doing wrong then please let me know. I did some more experimenting and I determined that I don't even need the listener. The following code will drop the window down a diagonal every time I click on the caption bar: qx.Class.define("creeper.Application", { extend : qx.application.Standalone, members : { main : function() { this.base(arguments); var win = new qx.ui.window.Window("Boo"); win.set({ marginTop: 50, marginLeft:50}) win.addListener("close", function() { win.destroy(); }, this); win.open(); } } }); -- Configure bugmail: http://bugzilla.qooxdoo.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. |