/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to js/module.js

  • Committer: Suren A. Chilingaryan
  • Date: 2008-04-20 05:22:25 UTC
  • Revision ID: csa@dside.dyndns.org-20080420052225-enu1yngq1pny531z
Layout redesign: search tab, controls, menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    this.module_callback = callback;
11
11
    this.attr = callback_attr;
12
12
 
 
13
    this.no_height_adjustments = false;
13
14
    this.module_height = 0;
14
15
 
15
16
    this.module = new Array();
18
19
    
19
20
}
20
21
 
 
22
MODULE.prototype.DisableHeightAdjustments = function() {
 
23
    this.no_height_adjustments = true;
 
24
}
 
25
 
21
26
MODULE.prototype.Register = function(module, module_class) {
22
27
    if (module_class) {
23
28
        this.names.push(module);
96
101
borders inside of the main divs.
97
102
*/
98
103
MODULE.prototype.UpdateGeometry = function() {
 
104
    if (this.no_height_adjustments) return;
 
105
    
99
106
    with (this) {
100
107
        if (module_name) prefix = module_name + "_";
101
108
        else prefix = "";
116
123
                }
117
124
            }
118
125
 
 
126
 
119
127
            if (cur_height_value > module_height) {
120
128
                module_height = cur_height_value;
121
129
 
127
135
                domSetMinHeight(node, module_height);
128
136
                this.RunGeometryCallbacks();
129
137
            }
 
138
 
130
139
        }
131
140
    }
132
141
}