4 * Copyright, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://www.tinymce.com/license
8 * Contributing: http://www.tinymce.com/contributing
12 * LayoutManager for absolute positioning. This layout manager is more of
13 * a base class for other layouts but can be created and used directly.
15 * @-x-less AbsoluteLayout.less
16 * @class tinymce.ui.AbsoluteLayout
17 * @extends tinymce.ui.Layout
19 define("tinymce/ui/AbsoluteLayout", [
24 return Layout.extend({
26 containerClass: 'abs-layout',
27 controlClass: 'abs-layout-item'
31 * Recalculates the positions of the controls in the specified container.
34 * @param {tinymce.ui.Container} container Container instance to recalc.
36 recalc: function(container) {
37 container.items().filter(':visible').each(function(ctrl) {
38 var settings = ctrl.settings;
54 * Renders the specified container and any layout specific HTML.
57 * @param {tinymce.ui.Container} container Container to render HTML for.
59 renderHtml: function(container) {
60 return '<div id="' + container._id + '-absend" class="' + container.classPrefix + 'abs-end"></div>' + this._super(container);