UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

64 lines (49 loc) 1.4 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Sebastian Werner (wpbasti) * Fabian Jakobs (fjakobs) ************************************************************************ */ /** * @tag noPlayground */ qx.Class.define("qxl.demobrowser.demo.root.Page", { extend : qx.application.Inline, members : { main: function() { this.base(arguments); var box = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var w1 = new qx.ui.core.Widget().set({ backgroundColor: "red", decorator: "main", padding: 10 }); var w2 = new qx.ui.core.Widget().set({ backgroundColor: "blue", decorator: "main" }); var w3 = new qx.ui.core.Widget().set({ backgroundColor: "green", decorator: "main" }); var w4 = new qx.ui.core.Widget().set({ backgroundColor: "yellow", decorator: "main" }); box.add(w1); box.add(w2); box.add(w3); box.add(w4); this.getRoot().add(box, {left: 30, top: 120}); } } });