1 /* ************************************************************************
3 qooxdoo - the new era of web development
8 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org
11 LGPL 2.1: http://www.gnu.org/licenses/lgpl.html
14 * Sebastian Werner (wpbasti)
15 * Andreas Ecker (ecker)
17 ************************************************************************ */
19 /* ************************************************************************
23 ************************************************************************ */
25 qx.OO.defineClass("qx.ui.menu.Separator", qx.ui.layout.CanvasLayout,
28 qx.ui.layout.CanvasLayout.call(this);
30 // Fix IE Styling Issues
31 this.setStyleProperty("fontSize", "0");
32 this.setStyleProperty("lineHeight", "0");
34 // ************************************************************************
36 // ************************************************************************
38 this._line = new qx.ui.basic.Terminator;
39 this._line.setAnonymous(true);
40 this._line.setAppearance("menu-separator-line");
44 // ************************************************************************
46 // ************************************************************************
48 // needed to stop the event, and keep the menu showing
49 this.addEventListener("mousedown", this._onmousedown);
52 qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "menu-separator" });
54 qx.Proto.hasIcon = qx.util.Return.returnFalse;
55 qx.Proto.hasLabel = qx.util.Return.returnFalse;
56 qx.Proto.hasShortcut = qx.util.Return.returnFalse;
57 qx.Proto.hasMenu = qx.util.Return.returnFalse;
59 qx.Proto._onmousedown = function(e) {
63 qx.Proto.dispose = function()
65 if (this.getDisposed()) {
75 return qx.ui.layout.CanvasLayout.prototype.dispose.call(this);