]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/debian/missing-sources/framework/Web/Javascripts/source/tinymce-405/classes/ui/FlowLayout.js
baculum: Add missing-sources directory in debian metadata structure
[bacula/bacula] / gui / baculum / debian / missing-sources / framework / Web / Javascripts / source / tinymce-405 / classes / ui / FlowLayout.js
1 /**
2  * FlowLayout.js
3  *
4  * Copyright, Moxiecode Systems AB
5  * Released under LGPL License.
6  *
7  * License: http://www.tinymce.com/license
8  * Contributing: http://www.tinymce.com/contributing
9  */
10
11 /**
12  * This layout manager will place the controls by using the browsers native layout.
13  *
14  * @-x-less FlowLayout.less
15  * @class tinymce.ui.FlowLayout
16  * @extends tinymce.ui.Layout
17  */
18 define("tinymce/ui/FlowLayout", [
19         "tinymce/ui/Layout"
20 ], function(Layout) {
21         return Layout.extend({
22                 Defaults: {
23                         containerClass: 'flow-layout',
24                         controlClass: 'flow-layout-item',
25                         endClass : 'break'
26                 },
27
28                 /**
29                  * Recalculates the positions of the controls in the specified container.
30                  *
31                  * @method recalc
32                  * @param {tinymce.ui.Container} container Container instance to recalc.
33                  */
34                 recalc: function(container) {
35                         container.items().filter(':visible').each(function(ctrl) {
36                                 if (ctrl.recalc) {
37                                         ctrl.recalc();
38                                 }
39                         });
40                 }
41         });
42 });